更新时间:2023-02-21 08:56:25
您也可以使用带消息的重载:
You can use the overload which takes a message as well:
Assert.AreEqual(0, widget.SomeValue, "Widget " + widget + " should have SomeValue of 0");
在循环中使用NUnit声明时,如何在错误消息中显示更多信息?