Exemplo n.º 1
0
        public void TestNonEquivalence(int index, object expected, object actual)
        {
            bool testPassed;

            try
            {
                var instance = new ExtendedTreeDataMatcher(expected);
                instance.AssertEquivalentTo(actual);
                testPassed = false;
            }
            catch (XunitException ex)
            {
                _output.WriteLine((index + 1) + ". " + ex);
                testPassed = true;
            }
            Assert.True(testPassed, "Expected non equivalence");
        }
Exemplo n.º 2
0
        public void TestEquivalence(object expected, object actual)
        {
            var instance = new ExtendedTreeDataMatcher(expected);

            instance.AssertEquivalentTo(actual);
        }