Programmatically skip an nunit test

前端 未结 2 1240
没有蜡笔的小新
没有蜡笔的小新 2020-12-10 00:38

Is there a way for an nunit test to end and tell the test runner that it should be considered skipped/ignored, rather than succeeded or failed?

My motivation for thi

2条回答
  •  一向
    一向 (楼主)
    2020-12-10 01:18

    Assert.Ignore();
    

    is specifically what you're asking for, though there is also:

    Assert.Inconclusive();
    

提交回复
热议问题