ipjohnson / SimpleFixture

Testing fixture for .Net
MIT License
11 stars 2 forks source link

Add support for Autodata(typeof(SomeClass)) #31

Closed ipjohnson closed 6 years ago

ipjohnson commented 7 years ago

To be more flexible it would be really useful to setup a test like

[Theory]
[Autodata(typeof(SomeClass))]
public void Test(ISomeInterface instance)
{
   Assert.IsType<SomeClass>(instance);
}