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); }
public void Test006() { var comparison = ToAttributeComparison(@"<b foo:ignoreCase=""BAR"">", "foo:ignorecase", @"<b foo=""bar"">", "foo"); AttributeComparer.Compare(comparison, CompareResult.Different).ShouldBe(CompareResult.Same); }
public void Test005() { var comparison = ToAttributeComparison(@"<b foo=""bar"">", "foo", @"<b foo=""baz"">", "foo"); AttributeComparer.Compare(comparison, CompareResult.Different).ShouldBe(CompareResult.Different); }
public void Test003() { var comparison = ToAttributeComparison(@"<b foo>", "foo", "<b bar>", "bar"); AttributeComparer.Compare(comparison, CompareResult.Different).ShouldBe(CompareResult.Different); }
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); }
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); }