static FastReflectionFactories() { MethodInvokerFactory = new MethodInvokerFactory(); PropertyAccessorFactory = new PropertyAccessorFactory(); FieldAccessorFactory = new FieldAccessorFactory(); ConstructorInvokerFactory = new ConstructorInvokerFactory(); }
public void CreateTest() { ConstructorInvokerFactory target = new ConstructorInvokerFactory(); Type myType = typeof(MyClass); ConstructorInfo key = myType.GetConstructor( BindingFlags.Instance | BindingFlags.Public, null, CallingConventions.HasThis, Type.EmptyTypes, null); IConstructorInvoker actual; actual = target.Create(key); Assert.IsNotNull(actual); }
public void ConstructorInvokerFactoryConstructorTest() { ConstructorInvokerFactory target = new ConstructorInvokerFactory(); Assert.IsNotNull(target); }