Example #1
0
 public void OnlyPartTitle()
 {
     byte[] input = { 31, 139, 8, 0 };
     CheckSearchResult(TitleSearcher.GetTitlesInfo(input), TitleMode.PartTitle, 0);
 }
Example #2
0
 public void FirstOfTitle()
 {
     byte[] input = { 1, 31 };
     CheckSearchResult(TitleSearcher.GetTitlesInfo(input), TitleMode.PartTitle, 1);
 }
Example #3
0
 public void TitleBeforeOneByte()
 {
     byte[] input = { 31, 139, 8, 0, 0, 0, 0, 0, 4, 0, 1 };
     CheckSearchResult(TitleSearcher.GetTitlesInfo(input), TitleMode.AllTitle, 0);
 }
Example #4
0
 public void TwoByteOfTitle()
 {
     byte[] input = { 1, 2, 31, 139, 31, 139 };
     CheckSearchResult(TitleSearcher.GetTitlesInfo(input), TitleMode.PartTitle, 4);
 }
Example #5
0
 public void TitleAfterTwoByte()
 {
     byte[] input = { 31, 31, 31, 139, 8, 0, 0, 0, 0, 0, 4, 0 };
     CheckSearchResult(TitleSearcher.GetTitlesInfo(input), TitleMode.AllTitle, 2);
 }
Example #6
0
 public void TestEmptyInput()
 {
     byte[] input = {};
     Assert.IsNull(TitleSearcher.GetTitlesInfo(input));
 }
Example #7
0
 public void TestBegin9Title()
 {
     byte[] input = { 31, 139, 8, 0, 0, 0, 0, 0, 4, 1 };
     Assert.IsNull(TitleSearcher.GetTitlesInfo(input));
 }
Example #8
0
 public void TestTwoBytes()
 {
     byte[] input = { 1, 3 };
     Assert.IsNull(TitleSearcher.GetTitlesInfo(input));
 }
Example #9
0
 public void TestOneByte()
 {
     byte[] input = { 1 };
     Assert.IsNull(TitleSearcher.GetTitlesInfo(input));
 }