Example #1
0
        private VersePointer CheckVerseParsing(string originalVerse, SimpleVersePointer expectedVerse)
        {
            var actualVerse = _versePointerFactory.CreateVersePointer(originalVerse);

            Assert.AreEqual(expectedVerse, actualVerse);

            return(actualVerse);
        }
Example #2
0
 private void LoadVersesDictionary(SimpleVersePointer verse, string moduleShortName)
 {
     _versesDictionary = new Dictionary <int, VERS>();
     foreach (var v in Verses)
     {
         if (_versesDictionary.ContainsKey(v.Index))
         {
             throw new BaseVersePointerException(
                       string.Format("Repeated verses were found in chapter '({2}) {0} {1}'", verse.BookIndex, this.Index, moduleShortName),
                       BaseVersePointerException.Severity.Error);
         }
         _versesDictionary.Add(v.Index, v);
     }
 }
Example #3
0
 protected override void CopyPropertiesTo(SimpleVersePointer verse)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public ChapterNotFoundException(SimpleVersePointer verse, string moduleShortName, Severity level)
     : base(string.Format("There is no chapter '({2}) {0} {1}'", verse.BookIndex, verse.Chapter, moduleShortName), level)
 {
     this.IsChapterException = true;
 }
Example #5
0
 public VerseNotFoundException(SimpleVersePointer verse, string moduleShortName, Severity level)
     : base(string.Format("There is no verse '({1}) {0}'", verse, moduleShortName), level)
 {
 }