RunAndCatch<T>(string[]) Method
Runs the command application and expects an exception of a specific type to be thrown.
public CommandAppFailure RunAndCatch<T>(params string[] args) where T : Exception
- Namespace
- Spectre
.Console .Testing - Containing Type
- CommandAppTester
Parameters
-
T
- The expected exception type.
Parameters
- string[] args
- The arguments.