public void GetAll_NoneInIndex_Returns0()
 {
     using (var r = AnnotationRepository.FromString("id", @"<notes version='0'/>"))
     {
         var index = new IndexOfRefsOfQuestionAnnotations();
         r.AddObserver(index, _progress);
         Assert.AreEqual(0, index.GetAll().Count());
     }
 }
Beispiel #2
0
 public void GetAll_NoneInIndex_Returns0()
 {
     using (var r = AnnotationRepository.FromString("id", @"<notes version='0'/>"))
     {
         var index = new IndexOfRefsOfQuestionAnnotations();
         r.AddObserver(index, _progress);
         Assert.AreEqual(0, index.GetAll().Count());
     }
 }
 public void GetAll_0OutOf1MatchFilter_Returns0()
 {
     using (var r = AnnotationRepository.FromString("id", @"<notes version='0'>
     <annotation class='note' ref='file://black'/>
     </notes>"))
     {
         var index = new IndexOfRefsOfQuestionAnnotations();
         r.AddObserver(index, _progress);
         Assert.AreEqual(0, index.GetAll().Count());
     }
 }
Beispiel #4
0
        public void GetAll_0OutOf1MatchFilter_Returns0()
        {
            using (var r = AnnotationRepository.FromString("id", @"<notes version='0'>
<annotation class='note' ref='file://black'/>
</notes>"))
            {
                var index = new IndexOfRefsOfQuestionAnnotations();
                r.AddObserver(index, _progress);
                Assert.AreEqual(0, index.GetAll().Count());
            }
        }