public void NoMatchedItemsTest()
{
Catalog catalog = new Catalog();
List<string[]> contentItemParams = new List<string[]>()
{
new string[] { "Firefox v.11.0", "Mozilla", "16148072", "http://www.mozilla.org" },
new string[] { "One", "Metallica", "8771120", "http://goo.gl/dIkth7gs" },
new string[] { "Intro C#", "S.Nakov", "12763892", "http://www.introprogramming.info" },
new string[] { "The Secret", "Drew Heriot, Sean Byrne & others (2006)", "832763834", "http://t.co/dNV4d" }
};
IContent application = new ContentItem(ContentType.Application, contentItemParams[0]);
IContent song = new ContentItem(ContentType.Song, contentItemParams[1]);
IContent book = new ContentItem(ContentType.Book, contentItemParams[2]);
IContent movie = new ContentItem(ContentType.Movie, contentItemParams[3]);
catalog.Add(application);
catalog.Add(song);
catalog.Add(book);
catalog.Add(book);
catalog.Add(book);
catalog.Add(movie);
catalog.Add(movie);
IEnumerable<IContent> matchedItems = catalog.GetListContent("Missing", 1);
string[] actualTextRepresentations = GetTextRepresentationsOfMatchedItems(matchedItems);
string[] expectedTextRepresentations = new string[] { };
CollectionAssert.AreEqual(expectedTextRepresentations, actualTextRepresentations);
Assert.AreEqual(0, matchedItems.Count());
}