コード例 #1
0
ファイル: SearchTest.cs プロジェクト: uphusar/Caesura
        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);
        }
コード例 #2
0
 public void Init()
 {
     Search.database = ObjectMother.EmptyDatabase();
 }