I'm new to testing
For example I have a test (test1) that test if getFoo() return something and i have a more complex test (test2) that use one or more time getFoo()
I want the test2 to not start if test1 fails or at least to fail automatically without start testing.
I searched the documentation on Nunit for some attribute like [Require(someothertest)] but i couldn't find anything.
Sorry for my broken english, hope the question is understandable
I'm not doing this
but I'm doing this
this is just an example
but as can you see test2 use obj.getFoo(), so if test1 fails i know getFoo() don't work correctly but getFoo may return a value that make test2 pass anyway, so I want that if test1 fails, test2 must not be tested or must automatically fail since it's not an attendible test
I hope i explained myself a little better