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")); }
public void UndefinedInstanceMethodIsNull() { DynamicClass dclass = new DynamicClass("Dog"); Assert.IsNull(dclass.GetInstanceMethod("foo")); }