ArgsTests.TabCompletionTests.TestArgRequiredCancelBehaviorWithNoREPLAndConditional C# (CSharp) Метод

TestArgRequiredCancelBehaviorWithNoREPLAndConditional() приватный Метод

private TestArgRequiredCancelBehaviorWithNoREPLAndConditional ( ) : void
Результат void
        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!");
            }
        }