public void AncestorSubtypeBindingTest()
        {
            var expected = new AncestorSubtypeBindingContainerClass
            {
                AncestorSubtypeBindingClass =
                    new AncestorSubtypeBindingClass
                    {
                        InnerClass = new AncestorSubtypeBindingInnerClass { Value = "hello" }
                    }
            };

            var actual = Roundtrip(expected);
            Assert.AreEqual(((AncestorSubtypeBindingClass) expected.AncestorSubtypeBindingClass).InnerClass.Value,
                ((AncestorSubtypeBindingClass) actual.AncestorSubtypeBindingClass).InnerClass.Value);
        }
Beispiel #2
0
        public void AncestorSubtypeBindingTest()
        {
            var expected = new AncestorSubtypeBindingContainerClass
            {
                AncestorSubtypeBindingClass =
                    new AncestorSubtypeBindingClass
                {
                    InnerClass = new AncestorSubtypeBindingInnerClass {
                        Value = "hello"
                    }
                }
            };

            var actual = Roundtrip(expected);

            Assert.Equal(((AncestorSubtypeBindingClass)expected.AncestorSubtypeBindingClass).InnerClass.Value,
                         ((AncestorSubtypeBindingClass)actual.AncestorSubtypeBindingClass).InnerClass.Value);
        }