Beispiel #1
0
        public void SimpleQuery()
        {
            QueryPerformer target = Mother.CreateQueryPerformer();

            target.Query("a");

            Assert.True(target.Results.Count() == 1);
            Assert.True(target.Results.First().Locations.Count() == 1);

            Assert.AreEqual("a1", target.Results.First().Locations.First().ServiceUrl);
        }
Beispiel #2
0
        public void two_words_with_one_file()
        {
            QueryPerformer target = Mother.CreateQueryPerformer();

            target.Query("a aa");

            Assert.True(target.Results.Count() == 1);
            Assert.True(target.Results.First().Locations.Count() == 1);

            //            CollectionAssert.AreEquivalent(new[]{"a1","aa1"},target.Results.First().Parts);
            Assert.AreEqual("a1", target.Results.First().Locations.First().ServiceUrl);
        }