Skip to content
No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
build
docs
src/MSTest.Extensions
tests/MSTest.Extensions.Tests
.gitattributes
.gitignore
GitVersion.config
How to Contribute.md
LICENSE
MSTest.Extensions.sln
MSTest.Extensions.sln.DotSettings
README.jp.md
README.md
README.zh-chs.md
README.zh-cht.md

README.md

English 日本語 简体中文 繁體中文

MSTestEnhancer

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.

MSTestEnhancer helps you to write unit tests without naming any method.

MSTestEnhancer 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.


Getting Started with MSTestEnhancer

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:

Unit test result

How to Engage, Contribute and Provide Feedback

// Constructing

Issue Guide

// Constructing

Contributing Guide

There are many ways to contribute to MSTestEnhancer

License

MSTestEnhancer is licensed under the MIT license

You can’t perform that action at this time.