MSTest Equivalent for NUnit's Parameterized Tests?

前端 未结 6 1585
栀梦
栀梦 2020-12-01 17:31

NUnit supports a feature where you can specify a set of data inputs for a unit test to be run multiple times.

[RowTest]
[Row(1001,1,2,3)]
[Row(1,1001,2,3)]
[         


        
6条回答
  •  既然无缘
    2020-12-01 18:29

    You can have this capability by writing a small extension of mstest as shown here.

    http://blogs.msdn.com/b/vstsqualitytools/archive/2009/09/04/extending-the-visual-studio-unit-test-type-part-2.aspx

提交回复
热议问题