public void TestArgRequiredCancelBehaviorWithNoREPLAndConditional()
{
try
{
TestConsoleProvider.SimulateConsoleInput("{escape}");
var action = Args.InvokeMain<ArgsWithRequiredAndNoREPLAndConditional>("-e");
Assert.Fail("An exception should have been thrown");
}
catch (MissingArgException ex)
{
Assert.IsTrue(ex.Message.ToLower().Contains("somearg"));
Console.WriteLine("Yay!");
}
}