예제 #1
0
        public void IgnoredSubtypeTest()
        {
            var expected = new SuperclassContainerWithNoBinding
            {
                Superclass = new IgnoredSubtype()
            };

            Roundtrip(expected);
        }
예제 #2
0
        public void UnorderedSubtypeTest()
        {
            var expected = new SuperclassContainerWithNoBinding
            {
                Superclass = new UnorderedSubtype()
            };

#if TESTASYNC
            Assert.ThrowsException <AggregateException>(() => Roundtrip(expected));
#else
            Assert.ThrowsException <InvalidOperationException>(() => Roundtrip(expected));
#endif
        }