Any .net unit test support supports nested sections inside functional binding like C ++ Catch framework

I am using a C ++ unit test framework named Catch https://github.com/philsquared/Catch

And I think his approach is very easy to pick up and organize tests:

  • Support for nested sections in functional device

Example:

Scenarios("abc....")
{
    Given("xyz")
    { 
        When("uvt..")
        { 
            Then("erew")
            {
            }
        }

        And_When("ssd")
        {
            Then("324")
            {
            }
        }
    }
}

      

The good thing about this framework is that it is easy to reuse the setup and support new scenarios (green path vs not so green path)

So, I'm just wondering someone has seen such a thing with a different unit test framework in C #. Thank.

Answer my question: I found NJasmine: https://www.nuget.org/packages/NJasmine Which gives me what I want.

+3
c ++ c # unit-testing try-catch


source to share


No one has answered this question yet

Check out similar questions:

267
Comparing C ++ Unit Tests
58
C ++ unit testing system
6
Is there a widely used C ++ unit testing framework that supports test categories?
3
Does the unit test hook support a unit-style reporting framework?
3
Unit testing with Catch C ++ is interfering with my main ()
1
Data for unit testing in .NET.
1
Unit Test Framework "Catch" - REQUIRE_THROWS_AS
1
System.BadImageFormatException when running XUnit 2.2.0 unit test in VS 2017 against asp.net core full .NET project.
0
C ++ Catch unit test framework integration with CMake
0
Postgresql PHP PDO unit testing fails



All Articles
Loading...
X
Show
Funny
Dev
Pics