示例#1
0
        public void RecordFieldUtility_HaveNotSubField_2()
        {
            RecordField source = _GetField();

            Assert.IsTrue(RecordFieldUtility.HaveNotSubField(source, '0', '1'));
            Assert.IsFalse(RecordFieldUtility.HaveNotSubField(source, 'a', 'b'));
            Assert.IsFalse(RecordFieldUtility.HaveNotSubField(source, 'b', '0'));
            Assert.IsFalse(RecordFieldUtility.HaveNotSubField(source, 'c', '1'));
            Assert.IsFalse(RecordFieldUtility.HaveNotSubField(source, 'd', 'f'));
            Assert.IsFalse(RecordFieldUtility.HaveNotSubField(source, 'e', 'q'));
            Assert.IsTrue(RecordFieldUtility.HaveNotSubField(source, 'f', 'g'));
        }