예제 #1
0
        public static void name_getset()
        {
            test.Testing obj = new test.TestingConcrete();

            string name = "Dummy";

            obj.SetName(name);
            Test.AssertEquals(name, obj.GetName());
        }
예제 #2
0
        public static void constructing_method()
        {
            bool   called = false;
            string name   = "Test object";

            test.Testing obj = new test.TestingConcrete(null, (test.Testing a) => {
                called = true;
                Console.WriteLine("callback: obj raw_handle: {0:x}", a.raw_handle);
                a.SetName(name);
            });

            Test.Assert(called);
            Test.AssertEquals(name, obj.GetName());
        }