NUnit.Should:NUnit 的 BDD 风格断言

时间:2021-06-14 02:38:54
【文件属性】:
文件名称:NUnit.Should:NUnit 的 BDD 风格断言
文件大小:481KB
文件格式:ZIP
更新时间:2021-06-14 02:38:54
C# NUnit.应该 什么? 另一个将 BDD 风格的Should()断言添加到。 它使用整整加上一些可选的Should*()。 下载 Install-Package NUnit.Should 或者: 最新版本:1.0.1.0 为或 + 下载 .dll 为什么? 我喜欢 NUnit。 当我在 2005 年开始进行 .NET 开发时,它是传统的测试库。 尽管 Visual Studio 现在带有 MSTest,但我发现 NUnit 似乎仍然是开源项目的常规测试库。 但是,我对有问题。 在过去的 3-4 年里,我一直在使用编写这样的断言: the_number.should == 5 the_dogs.should include('rover') 我喜欢用于断言的 RSpec 语法。 这是很自然的。 在 NUnit 中,我可以使用 2 种不同的样式来编写类似的断言: As
【文件预览】:
NUnit.Should-master
----.gitignore(52B)
----run-specs(711B)
----README.markdown(4KB)
----NUnit.Should.nuspec(810B)
----NUnit.Should.NET20.sln(1KB)
----src()
--------NUnit.Should.NET20.csproj(3KB)
--------NUnit.Should.NET30.csproj(2KB)
--------ExtensionAttribute.cs(204B)
--------HelperMethods.cs(1KB)
--------NUnit.Should.cs(1KB)
--------AssemblyInfo.cs(502B)
----NUnit.Should.NET30.sln(1KB)
----spec()
--------ShouldSpec.cs(1KB)
--------NUnit.Should.Specs.NET20.csproj(3KB)
--------NUnit.Should.Specs.NET30.csproj(3KB)
----tools()
--------nunit-console-runner.dll(32KB)
--------nunit-color-console.exe(7KB)
--------nunit.core.dll(136KB)
--------nunit.core.interfaces.dll(56KB)
--------nunit.util.dll(124KB)
--------nunit-console.exe(5KB)
--------docu()
----lib()
--------nunit.framework.dll(132KB)
----build-and-test-release(713B)

网友评论