文件名称:NUnit-GroupAssert:向 NUnit 添加组断言(类似于 AssertJ 的 Soft Assertions)
文件大小:14KB
文件格式:ZIP
更新时间:2024-07-16 09:50:53
C#
NUnit-GroupAssert 向 NUnit 添加组断言(类似于 AssertJ 的 Soft Assertions) 例子 [ Test ] public void Verify_GroupsExceptions () { var group = new AssertGroup (); group . Add (() => Assert . AreEqual ( 10 , 20 )); group . Add (() => Assert . AreEqual ( 1 , 1 )); group . Add (() => Assert . AreEqual ( 3 , 4 )); group . Add (() => Assert . IsTrue ( 1 > 3 )); group . Verify (); } // OR publ
【文件预览】:
NUnit-GroupAssert-master
----.gitignore(2KB)
----README.md(1KB)
----LICENSE(11KB)
----src()
--------GroupedAssertion.cs(438B)
--------Properties()
--------AssertGroup.cs(2KB)
--------packages.config(129B)
--------Nunit-GroupAssert.csproj(3KB)
--------Nunit-GroupAssert.sln(1KB)
----Tests()
--------Tests.csproj(3KB)
--------Properties()
--------AssertGroupTests.cs(1KB)
--------packages.config(129B)