public void CreateVertexFactoryTwice() { IVertexFactory <object> factory = FactoryCompiler.GetVertexFactory <object>(); Assert.IsNotNull(factory); Assert.IsNotNull(factory.CreateVertex()); IVertexFactory <object> factory2 = FactoryCompiler.GetVertexFactory <object>(); Assert.IsNotNull(factory2); Assert.IsNotNull(factory2.CreateVertex()); }
public void CreateVertexFactory() { MethodInfo boo = typeof(Foo).GetMethod("Boo"); IVertexFactory <Foo> factory = FactoryCompiler.GetVertexFactory <Foo>(); Assert.IsNotNull(factory); Foo foo = factory.CreateVertex(); Assert.IsNotNull(foo); }