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); }
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); }