示例#1
0
 public void TestInheritedFunctionCallFromCpp()
 {
     var a = new CSharpA();
     var b = new CSharpB();
     a.SetName( "bob" );
     a.SayHello();
     b.SetA( a );
     Assert.AreEqual(  "C++ Call A:C# Hell!", b.CallA() );
 }
示例#2
0
        public void TestInheritedFunctionCallFromCpp()
        {
            var a = new CSharpA();
            var b = new CSharpB();

            a.SetName("bob");
            a.SayHello();
            b.SetA(a);
            Assert.AreEqual("C++ Call A:C# Hell!", b.CallA());
        }