Пример #1
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());
     }
 }
Пример #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());
     }
 }
Пример #3
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());
     }
 }
Пример #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());
            }
        }