开发者

Creating Tests at Runtime

开发者 https://www.devze.com 2022-12-27 08:38 出处:网络
Are there any .NET testing frameworks which allow dynamic creation of tests without having to deal with a hokey Attribute syntax?开发者_高级运维

Are there any .NET testing frameworks which allow dynamic creation of tests without having to deal with a hokey Attribute syntax?开发者_高级运维

Something like:

foreach (var t in tests)
{
  TestFx.Run(t.Name, t.TestDelegate);
}

But with the test reporting as you would expect...

I could do something like this with RowTests et al, but that seems hokey.


I wonder if Pex would suite your needs...


I found out how i can use parameterized tests to sorta do this here.

http://richarddingwall.name/2009/06/08/using-nunit-to-check-your-ioc-container-is-set-up-right/

0

精彩评论

暂无评论...
验证码 换一张
取 消