예제 #1
0
        public void RetrieveDefinedInstanceMethodIsNull()
        {
            DynamicClass dclass = new DynamicClass("Dog");
            IFunction    foo    = new DefinedFunction(null, null, null);

            dclass.SetInstanceMethod("foo", foo);

            Assert.AreSame(foo, dclass.GetInstanceMethod("foo"));
        }
예제 #2
0
        public void UndefinedInstanceMethodIsNull()
        {
            DynamicClass dclass = new DynamicClass("Dog");

            Assert.IsNull(dclass.GetInstanceMethod("foo"));
        }