Method | Description | |
---|---|---|
ExpectError ( System.Action errorFunction ) : void |
Performs the given action action and throws an exception if the action does not error. This is useful for debugging code and testing for exceptions.
|
public static ExpectError ( System.Action errorFunction ) : void | ||
errorFunction | System.Action | the action to perform |
return | void |