标签: .net unit-testing mstest data-driven-tests
MSTest 中是否存在 NUnit [Test, TestCaseSource("PropertyName")]或 xUnit [Theory, PropertyData("PropertyName")]的类似内容?
[Test, TestCaseSource("PropertyName")]
[Theory, PropertyData("PropertyName")]
答案 0 :(得分:0)
是的,DataSource(属性)正是您要找的。 https://msdn.microsoft.com/en-us/library/ms379625(v=vs.80).aspx Something similar to NUnit TestCaseSource in Visual Studio unit testing