NUnit, is it possible to continue executing test after Assert fails?

前端 未结 9 2196
伪装坚强ぢ
伪装坚强ぢ 2020-12-29 19:42

In a test that contains some asserts, for example:

Assert.AreEqual(1,1);
Assert.AreEqual(2,1);
Assert.AreEqual(2,2);

is it possible to let

9条回答
  •  长情又很酷
    2020-12-29 20:24

    NUnit 3.6 adds Assert.Multiple method and MultipleAsserts attribute.

    See https://github.com/nunit/docs/wiki/Multiple-Asserts.

提交回复
热议问题