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