public void SeekBlockStart_Test_EoF() { CMdlFileNavigator obj = new CMdlFileNavigator(new byte[0]); long pos = obj.BaseStream.Position; obj.SeekBlockStart(); Assert.IsTrue(pos == obj.ReaderPos, String.Format("Returned position: {0}", obj.ReaderPos)); }
public void SeekBlockStart_Test_NoStart() { string str = "BINVRSN\r\n 1\r\n}\r\nFRMERootNode"; CMdlFileNavigator obj = Setup(str); obj.SeekBlockStart(); Assert.IsTrue(str.Length == obj.ReaderPos, String.Format("Returned position: {0}", obj.ReaderPos)); }