public void Must_create_instance() { Assert.That(_factory.CreateFromType(typeof(FooTemplate)), Is.InstanceOf <FooTemplate>()); }
public void Must_throw_exception() { Assert.That(() => _factory.CreateFromType(typeof(object)), Throws.InstanceOf <ArgumentException>()); }