public void CreateConstructor() { var constructor = ExpressionFactory.CreateConstructor(typeof(Contact)); Assert.NotNull(constructor); var contactDelegate = constructor() as Contact; Assert.NotNull(contactDelegate); Assert.IsType <Contact>(contactDelegate); }