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


source to share





All Articles