![]() |
VOOZH | about |
dotnet add package MSTestEnhancer --version 2.2.2
NuGet\Install-Package MSTestEnhancer -Version 2.2.2
<PackageReference Include="MSTestEnhancer" Version="2.2.2" />
<PackageVersion Include="MSTestEnhancer" Version="2.2.2" />Directory.Packages.props
<PackageReference Include="MSTestEnhancer" />Project file
paket add MSTestEnhancer --version 2.2.2
#r "nuget: MSTestEnhancer, 2.2.2"
#:package MSTestEnhancer@2.2.2
#addin nuget:?package=MSTestEnhancer&version=2.2.2Install as a Cake Addin
#tool nuget:?package=MSTestEnhancer&version=2.2.2Install as a Cake Tool
👁 .NET Build & Test
👁 NuGet Push
| Name | NuGet |
|---|---|
| MSTestEnhancer | 👁 alternate text is missing from this package README image |
| dotnetCampus.UITest.WPF | 👁 alternate text is missing from this package README image |
Don't you think that naming is very very hard? Especially naming for unit test method? Read this article for more data of naming: Don’t go into programming if you don’t have a good thesaurus - ITworld.
CUnit (MSTestEnhancer) helps you to write unit tests without naming any method.
CUnit is a contract-style unit test extension for MSTestv2. You can write method contract descriptions instead of writing confusing test method name when writing unit tests.
You can write unit test like this:
[TestClass]
public class DemoTest
{
[ContractTestCase]
public void Foo()
{
"When A happened, result A'.".Test(() =>
{
// Arrange
// Action
// Assert
});
"But when B happened, result B'".Test(() =>
{
// Arrange
// Action
// Assert
});
}
}
Then you'll see this kind of test result in testing explorer window:
For more usages, please visit:
There are many ways to contribute to MSTestEnhancer
MSTestEnhancer is licensed under the
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 is compatible. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net45 net45 is compatible. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on MSTestEnhancer:
| Package | Downloads |
|---|---|
|
dotnetCampus.UITest.WPF
The UITest framework for WPF |
Showing the top 2 popular GitHub repositories that depend on MSTestEnhancer:
| Repository | Stars |
|---|---|
|
lindexi/lindexi_gd
博客用到的代码
|
|
|
dotnet-campus/AsyncWorkerCollection
高性能的多线程异步工具库。A collection of tools that support asynchronous methods and support high-performance multithreading.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.2 | 3,160 | 7/19/2025 |
| 2.2.2-alpha05 | 216 | 7/15/2025 |
| 2.2.1 | 1,653 | 10/27/2022 |
| 2.2.1-alpha01 | 5,320 | 2/21/2022 |
| 2.2.0 | 10,419 | 1/6/2022 |
| 2.1.2-alpha03 | 377 | 12/27/2021 |
| 2.1.2-alpha02 | 367 | 12/27/2021 |
| 2.1.2-alpha01 | 362 | 12/27/2021 |
| 2.1.1 | 1,784 | 8/4/2021 |
| 2.1.1-alpha02 | 382 | 8/4/2021 |
| 2.1.1-alpha01 | 474 | 8/4/2021 |
| 2.1.0 | 4,354 | 3/4/2021 |
| 2.0.2-alpha03 | 258 | 8/10/2023 |
| 2.0.2-alpha02 | 347 | 4/18/2023 |
| 2.0.1 | 5,885 | 5/24/2020 |
| 1.6.0 | 3,844 | 6/21/2018 |
| 1.4.0 | 1,895 | 3/20/2018 |
| 1.3.0 | 1,480 | 2/26/2018 |
| 1.2.1 | 1,485 | 2/24/2018 |
| 1.2.0 | 1,425 | 2/13/2018 |
Add some assersion extensions.