public void ParseTest_ChapterVerseRange() { string block = "john 3:16 - 5:34"; string currentBook = string.Empty; string currentChapter = string.Empty; string currentVerse = string.Empty; RawRange_Accessor expected = new RawRange_Accessor { FirstBook = "john", FirstChapterString = "3", FirstVerseString = "16", SecondBook = "john", SecondChapterString = "5", SecondVerseString = "34" }; RawRange_Accessor actual; actual = RawRange_Accessor.Parse(block, currentBook, currentChapter, currentVerse); Assert.AreEqual(expected, actual); }
public void ParseTest_BookRangeWithOneChapter() { string block = "luke - acts 9"; string currentBook = string.Empty; string currentChapter = string.Empty; string currentVerse = string.Empty; RawRange_Accessor expected = new RawRange_Accessor { FirstBook = "luke", FirstChapterString = null, FirstVerseString = null, SecondBook = "acts", SecondChapterString = "9", SecondVerseString = null }; RawRange_Accessor actual; actual = RawRange_Accessor.Parse(block, currentBook, currentChapter, currentVerse); Assert.AreEqual(expected, actual); }
public void ParseTest_Basic_CurrentBookAndChapter() { string block = "16"; string currentBook = "john"; string currentChapter = "3"; string currentVerse = string.Empty; RawRange_Accessor expected = new RawRange_Accessor { FirstBook = "john", FirstChapterString = "16", FirstVerseString = null, SecondBook = "john", SecondChapterString = "16", SecondVerseString = null }; RawRange_Accessor actual; actual = RawRange_Accessor.Parse(block, currentBook, currentChapter, currentVerse); Assert.AreEqual(expected, actual); }
public void ParseTest_VerseRange() { string block = "acts 5:4-9"; string currentBook = string.Empty; string currentChapter = string.Empty; string currentVerse = string.Empty; RawRange_Accessor expected = new RawRange_Accessor { FirstBook = "acts", FirstChapterString = "5", FirstVerseString = "4", FirstVerse = 4, SecondBook = "acts", SecondChapterString = "5", SecondVerseString = "9", SecondVerse = 9 }; RawRange_Accessor actual; actual = RawRange_Accessor.Parse(block, currentBook, currentChapter, currentVerse); Assert.AreEqual(expected, actual); }
public void ParseTest_NoBook() { RawRange_Accessor actual; actual = RawRange_Accessor.Parse("3:16-john 3:17", null, null, null); }
public void ParseTest_null() { RawRange_Accessor actual; actual = RawRange_Accessor.Parse(null, null, null, null); }