示例#1
0
        public static void parent_inherited_class()
        {
            test.INumberwrapper parent = new test.Numberwrapper(null);
            test.ITesting       child  = new test.Testing(parent);

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

            test.INumberwrapper parent_retrieved = test.Numberwrapper.static_cast(child.GetParent());
            Test.AssertEquals(parent, parent_retrieved);
        }
示例#2
0
        public static void basic_parent()
        {
            test.ITesting parent = new test.Testing(null);
            test.ITesting child  = new test.Testing(parent);

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

            test.ITesting parent_retrieved = test.Testing.static_cast(child.GetParent());
            Test.AssertEquals(parent, parent_retrieved);
        }