예제 #1
0
        public static void test_find_provider()
        {
            // Tests only the direction C# -> C
            var obj = new Dummy.TestObject();

            Dummy.Numberwrapper provider = obj.FindProvider(typeof(Dummy.Numberwrapper)) as Dummy.Numberwrapper;
            Test.AssertEquals(provider.GetType(), typeof(Dummy.Numberwrapper));
            Test.AssertEquals(provider.GetNumber(), 1999);
        }