public static void name_getset() { test.ITesting obj = new test.Testing(); string name = "Dummy"; obj.SetName(name); Test.AssertEquals(name, obj.GetName()); }
public static void constructing_method() { bool called = false; string name = "Test object"; test.ITesting obj = new test.Testing(null, (test.ITesting 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()); }