public void Test004()
        {
            var source1         = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var source2         = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var comparison      = new AttributeComparison(source1, source1);
            var otherComparison = new AttributeComparison(source2, source2);

            comparison.GetHashCode().ShouldNotBe(otherComparison.GetHashCode());
        }
        public void Test003()
        {
            var control         = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var test            = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var comparison      = new AttributeComparison(control, test);
            var otherComparison = new AttributeComparison(control, test);

            comparison.GetHashCode().ShouldBe(otherComparison.GetHashCode());
        }
        public void Test005()
        {
            var control    = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var test       = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var comparison = new AttributeComparison(control, test);

            var(actualCtrlElm, actualTestElm) = comparison.GetAttributeElements();

            actualCtrlElm.ShouldBe(control.ElementSource.Node);
            actualTestElm.ShouldBe(test.ElementSource.Node);
        }
        public void Test002()
        {
            var source1         = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var source2         = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var comparison      = new AttributeComparison(source1, source1);
            var otherComparison = new AttributeComparison(source2, source2);

            comparison.Equals(otherComparison).ShouldBeFalse();
            comparison.Equals((object)otherComparison).ShouldBeFalse();
            (comparison == otherComparison).ShouldBeFalse();
            (comparison != otherComparison).ShouldBeTrue();
        }
        public void Test001()
        {
            var control         = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var test            = ToAttributeComparisonSource(@"<br foo=""bar"">", "foo");
            var comparison      = new AttributeComparison(control, test);
            var otherComparison = new AttributeComparison(control, test);

            comparison.Equals(otherComparison).ShouldBeTrue();
            comparison.Equals((object)otherComparison).ShouldBeTrue();
            (comparison == otherComparison).ShouldBeTrue();
            (comparison != otherComparison).ShouldBeFalse();
        }
 public static CompareResult DiffResultAttrComparer(AttributeComparison comparison) => CompareResult.Different;
 public static CompareResult SameResultAttrComparer(AttributeComparison comparison) => CompareResult.Same;