public void RegisterInstance_DoesNotThrow <TStruct> (TStruct structure) where TStruct : IStructure, new() { var fact = new StructureFactory(); Assert.That(() => fact.RegisterInstance <TStruct>(structure), Throws.Nothing); }