Example #1
0
        public static void basic_parent()
        {
            test.Testing parent = new test.TestingConcrete(null);
            test.Testing child  = new test.TestingConcrete(parent);

            Test.AssertEquals(parent, child.GetParent());

            test.Testing parent_retrieved = test.TestingConcrete.static_cast(child.GetParent());
            Test.AssertEquals(parent, parent_retrieved);
        }
Example #2
0
        public static void parent_inherited_class()
        {
            test.Numberwrapper parent = new test.NumberwrapperConcrete(null);
            test.Testing       child  = new test.TestingConcrete(parent);

            Test.AssertEquals(parent, child.GetParent());

            test.Numberwrapper parent_retrieved = test.NumberwrapperConcrete.static_cast(child.GetParent());
            Test.AssertEquals(parent, parent_retrieved);
        }