예제 #1
0
        public void IsBinVersEqual_Test_Incompatible()
        {
            string            str = "<\ra\ndomDa\ta>\0";
            CMdlFileNavigator obj = Setup(str);

            Assert.IsFalse(obj.IsBinVersEqual(1));
        }
예제 #2
0
        public void IsBinVersEqual_Test_Empty()
        {
            string            str = "";
            CMdlFileNavigator obj = Setup(str);

            Assert.IsFalse(obj.IsBinVersEqual(1));
        }
예제 #3
0
        public void IsBinVersEqual_Test_Unsupported()
        {
            string            str = "BINVRSN{\r\n    2\r\n}\r\n";
            CMdlFileNavigator obj = Setup(str);

            Assert.IsFalse(obj.IsBinVersEqual(1));
        }
예제 #4
0
        public void IsBinVersEqual_Test_Positive()
        {
            string            str = "BINVRSN{\t 99 \t\r\n<optionalIndent>}\r\n";
            CMdlFileNavigator obj = Setup(str);

            Assert.IsTrue(obj.IsBinVersEqual(99));
        }
예제 #5
0
        public void HasMore_Test_Negative()
        {
            string            str = "BINVRSN{\r\n    1\r\n}\r\n";
            CMdlFileNavigator obj = Setup(str);

            obj.IsBinVersEqual(1);

            Assert.IsFalse(obj.HasMore());
        }
예제 #6
0
        public void HasMore_Test_Positive()
        {
            string            str = "BINVRSN{\r\n    1\r\n}\r\nFRMERootNode";
            CMdlFileNavigator obj = Setup(str);

            obj.IsBinVersEqual(1);

            Assert.IsTrue(obj.HasMore());
        }