コード例 #1
0
        public void SubtypeAsSourceTest()
        {
            var expected = new SubtypeAsSourceClass {
                Superclass = new SubclassA(), Name = "Alice"
            };
            var actual = Roundtrip(expected);

            Assert.Equal(expected.Name, actual.Name);
        }
コード例 #2
0
 public void SubtypeAsSourceTest()
 {
     var expected = new SubtypeAsSourceClass {Superclass = new SubclassA(), Name = "Alice"};
     var actual = Roundtrip(expected);
     Assert.AreEqual(expected.Name, actual.Name);
 }