示例#1
0
        public void Test007()
        {
            var comparison = ToAttributeComparison(@"<b foo:regex=""foobar-\d{4}"">", "foo:regex",
                                                   @"<b foo=""foobar-2000"">", "foo");

            AttributeComparer.Compare(comparison, CompareResult.Different).ShouldBe(CompareResult.Same);
        }
示例#2
0
        public void Test006()
        {
            var comparison = ToAttributeComparison(@"<b foo:ignoreCase=""BAR"">", "foo:ignorecase",
                                                   @"<b foo=""bar"">", "foo");

            AttributeComparer.Compare(comparison, CompareResult.Different).ShouldBe(CompareResult.Same);
        }
示例#3
0
        public void Test005()
        {
            var comparison = ToAttributeComparison(@"<b foo=""bar"">", "foo",
                                                   @"<b foo=""baz"">", "foo");

            AttributeComparer.Compare(comparison, CompareResult.Different).ShouldBe(CompareResult.Different);
        }
示例#4
0
        public void Test003()
        {
            var comparison = ToAttributeComparison(@"<b foo>", "foo",
                                                   "<b bar>", "bar");

            AttributeComparer.Compare(comparison, CompareResult.Different).ShouldBe(CompareResult.Different);
        }
示例#5
0
        public void Test008(string attrNamePostfix)
        {
            var controlAttrName = $"foo{attrNamePostfix}";
            var comparison      = ToAttributeComparison($@"<b {controlAttrName}=""foobar-\d{{4}}"">", controlAttrName,
                                                        @"<b foo=""FOOBAR-2000"">", "foo");

            AttributeComparer.Compare(comparison, CompareResult.Different).ShouldBe(CompareResult.Same);
        }
示例#6
0
        public void Test001()
        {
            var comparison = ToAttributeComparison(@"<b foo>", "foo",
                                                   "<b bar>", "bar");

            AttributeComparer.Compare(comparison, CompareResult.Same).ShouldBe(CompareResult.Same);
            AttributeComparer.Compare(comparison, CompareResult.Skip).ShouldBe(CompareResult.Skip);
        }