Exemple #1
0
        public void Json_First()
        {
            Base b   = new Derived();
            var  res = b.CloneWithJson();

            output.WriteLine("res.GetType() =" + res.GetType().Name);
        }
Exemple #2
0
        public void CloneWithJsonTest()
        {
            Base b   = new Derived();
            var  res = b.CloneWithJson();

            Output.WriteLine("res.GetType() = " + res.GetType().Name);
            Assert.Equal(nameof(Derived), res.GetType().Name);
        }