public void TestThatEmptyDatabaseReturnsNoResults() { Search.database = ObjectMother.EmptyDatabase(); List <String> result; List <String> empty = new List <String>(); result = Search.getFilesWithTags("video"); Assert.AreEqual(empty, result); result = Search.getFilesContainingTags("video"); Assert.AreEqual(empty, result); result = Search.getFilesNotContainingTags("video"); Assert.AreEqual(empty, result); }
public void Init() { Search.database = ObjectMother.EmptyDatabase(); }