public void ReadTag_Test_Expected() { string str = "FRME"; CMdlFileNavigator obj = Setup(str); string tag = obj.ReadTag(new List <byte[]>() { CTextUtil.StrToAnsi(str) }); Assert.IsTrue(tag.Equals(str) && (obj.ReaderPos == 4), "Returned data: " + tag); }
public void ReadTag_Test_Unexpected() { string str = "}FRME"; CMdlFileNavigator obj = Setup(str); string tag = obj.ReadTag(new List <byte[]>() { CTextUtil.StrToAnsi("FRME") }); Assert.IsTrue(string.IsNullOrEmpty(tag) && (obj.ReaderPos == 0), "Returned data: " + tag); }