Ejemplo n.º 1
0
        public void EqualityTests(EqualityTestCase test)
        {
            JsonSchema left  = SchemaReader.ReadSchema(test.Left, TestUtil.TestFilePath + ".left");
            JsonSchema right = SchemaReader.ReadSchema(test.Right, TestUtil.TestFilePath + ".right");

            left.Equals(right).Should().Be(test.ShouldBeEqual);
            (left == right).Should().Be(test.ShouldBeEqual);
            (left != right).Should().Be(!test.ShouldBeEqual);
        }
Ejemplo n.º 2
0
        public void EqualityTests(EqualityTestCase test)
        {
            UriOrFragment left = test.Left == null
                ? null
                : new UriOrFragment(test.Left);

            UriOrFragment right = test.Right == null
                ? null
                : new UriOrFragment(test.Right);

            left.Equals(right).Should().Be(test.ShouldBeEqual);
            (left == right).Should().Be(test.ShouldBeEqual);
            (left != right).Should().Be(!test.ShouldBeEqual);
        }