public void OneParentNull()
        {
            var actual = new Foo
            {
                Parent = new Foo(),
            };
            var expected = new Foo();

            Assert.Throws(typeof (PropertyEqualException), () => Assert.Equal(expected, actual, CreateShallowComparer()));
        }
        public void Name()
        {
            var actual = new Foo
            {
                Number = 2,
                Name = "two"
            };
            var expected = new Foo
            {
                Number = 2,
                Name = "zwei"
            };

            Assert.Throws(typeof (PropertyEqualException), () => Assert.Equal(expected, actual, CreateShallowComparer()));
        }
 public void ParentNotEqual()
 {
     var actual = new Foo
     {
         Parent = new Foo {Number = 2},
     };
     var expected = new Foo
     {
         Parent = new Foo {Number = 3},
     };
     Assert.Equal(expected, actual, CreateShallowComparer());
 }
 public void Test()
 {
     var a = new Foo
     {
         Number = 2,
         Name = "child",
         Parent = new Foo
         {
             Number = 1,
             Name = "parent",
         },
     };
 }