【问题标题】:Is there something similar to NUnit's [Combinatorial] for MS Visual Studio test?有没有类似于 NUnit 的 [Combinatorial] for MS Visual Studio 测试的东西?
【发布时间】:2013-11-11 08:30:24
【问题描述】:

有没有类似于 NUnit 的 [Combinatorial][Sequential] 用于 MS Visual Studio 测试的东西?

不幸的是,我必须将我的测试移植到 VS。

【问题讨论】:

  • 我认为 MSTest 中没有直接的等价物。但是,您可以在以下 SO 问题herehere 中获得有关如何编写参数化 MSTest 的一些提示。
  • 这确实很不幸...
  • 如果我必须将 NUnit 测试移植到 MS Visual Studio 测试,我只会更换雇主 :) 为什么要从简单到复杂? :)

标签: c# visual-studio-2010 nunit


【解决方案1】:

将尖叫声拖入 MSTests?我希望至少你能表达你对低于标准的工具前景的不满。

可能会有一线希望,因为有一个名为data-driven tests 的概念可能会对您有所帮助。通过使用数据源,您可以通过使用DataSourceAttribute 将多个值发送到测试,因此理论上您可以将 NUnit 测试值通过管道传输到数据源中,然后由 MSTest 测试使用

祝你好运!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-09-05
    • 1970-01-01
    • 2010-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-16
    • 2011-01-01
    相关资源
    最近更新 更多