Example #1
0
        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);
        }
Example #2
0
        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);
        }