与 NUnit 的 Assert.Ignore 等效的 Visual Studio TestTools 是什么?

What is the Visual Studio TestTools equivalent of NUnit's Assert.Ignore?

标题说明了一切。如果我想在 运行 时间忽略测试,我可以使用 NUnit 的 Assert.Ignore() 调用。

但是,我没有使用 NUnit! Microsoft.VisualStudio.TestTools.UnitTesting 中似乎没有 Assert.Ignore()。 Visual Studio 的单元测试库是否有类似的替代品?

拜托。在探索了 Visual Studio 的 Assert 实现之后,Assert.Inconclusive() 似乎可以解决问题![​​=11=]

使用Assert.Inconclusive方法:

Indicates that an assertion cannot be proven true or false. Also used to indicate an assertion that has not yet been implemented.


来源:https://xunit.codeplex.com/wikipage?title=Comparisons.