Esempio n. 1
0
        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);
        }
Esempio n. 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);
        }