public void CreateTest() { var typeName = typeof(ConcreteProduct).AssemblyQualifiedName; var product = RawGenericFactory.Create <IProduct>(typeName); Assert.AreEqual(typeName, product.GetType().AssemblyQualifiedName); }
public void RawGenericFactoryTest() { string typeName = typeof(ConcreteProduct).AssemblyQualifiedName; IProduct product = RawGenericFactory.Create <IProduct>(typeName); Assert.IsNotNull(product); Assert.AreEqual <string>(typeName, product.GetType().AssemblyQualifiedName); }