I need to write a unit test for the next function and I saw I can use [ExpectedException]
this is the function to be tested.
public static T FailIfEnumIs
Assert the exception is throw with the correct exception message with :
var ex = Assert.Throws(() => _foo.DoSomething(a, b, c)); Assert.That(ex.Message, Is.EqualTo("Your exception message"));