Exemplo n.º 1
0
 public void OnlyPartTitle()
 {
     byte[] input = { 31, 139, 8, 0 };
     CheckSearchResult(TitleSearcher.GetTitlesInfo(input), TitleMode.PartTitle, 0);
 }
Exemplo n.º 2
0
 public void FirstOfTitle()
 {
     byte[] input = { 1, 31 };
     CheckSearchResult(TitleSearcher.GetTitlesInfo(input), TitleMode.PartTitle, 1);
 }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
 public void TwoByteOfTitle()
 {
     byte[] input = { 1, 2, 31, 139, 31, 139 };
     CheckSearchResult(TitleSearcher.GetTitlesInfo(input), TitleMode.PartTitle, 4);
 }
Exemplo n.º 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);
 }
Exemplo n.º 6
0
 public void TestEmptyInput()
 {
     byte[] input = {};
     Assert.IsNull(TitleSearcher.GetTitlesInfo(input));
 }
Exemplo n.º 7
0
 public void TestBegin9Title()
 {
     byte[] input = { 31, 139, 8, 0, 0, 0, 0, 0, 4, 1 };
     Assert.IsNull(TitleSearcher.GetTitlesInfo(input));
 }
Exemplo n.º 8
0
 public void TestTwoBytes()
 {
     byte[] input = { 1, 3 };
     Assert.IsNull(TitleSearcher.GetTitlesInfo(input));
 }
Exemplo n.º 9
0
 public void TestOneByte()
 {
     byte[] input = { 1 };
     Assert.IsNull(TitleSearcher.GetTitlesInfo(input));
 }