Abstract goal: I’m working with NUnit (3.9.0 at the moment). Some work to finish the tests is done in the OneTimeTearDown method. When this work fails, I need an indication, i.e. one or more tests should fail.
Background: I’m implementing PACT Tests using NUnit as the Unit Test framework. On the consumer, after all tests are run, I have to generate and upload the PACT file to the PACT broker. If this fails, e.g. when the pact broker is down, I need to have an indication; i.e. one or all tests should fail.
Question: Is this possible using NUnit? If so: How? Or would there be a better approach to achieve my objective?