public void IsAtTag_Test_EoF() { CMdlFileNavigator obj = new CMdlFileNavigator(new byte[0]); bool result = obj.IsAtTag(StrToByte("MYTAG{")); Assert.IsFalse(result); }
public void IsAtTag_Test_Specific_Empty() { string str = "FRME"; CMdlFileNavigator obj = Setup(str); bool result = obj.IsAtTag(new byte[0]); Assert.IsFalse(result); }
public void IsAtTag_Test_Specific_Negative() { string str = "{\ra\ndomDa\ta}\0"; CMdlFileNavigator obj = Setup(str); bool result = obj.IsAtTag(StrToByte("MYTAG{")); Assert.IsFalse(result); }
public void IsAtTag_Test_Specific_Positive() { string str = "MYTAG{"; CMdlFileNavigator obj = Setup(str); bool result = obj.IsAtTag(StrToByte(str)); Assert.IsTrue(result); }
public void IsAtTag_Test_Specific_Null() { string str = "FRME"; CMdlFileNavigator obj = Setup(str); bool result = true; try{ result = obj.IsAtTag(null); } catch { result = true; } Assert.IsFalse(result); }