ArgsTests.BasicTests.TestBasicUsageWithNoExeNameThrows C# (CSharp) Method

TestBasicUsageWithNoExeNameThrows() private method

private TestBasicUsageWithNoExeNameThrows ( ) : void
return void
        public void TestBasicUsageWithNoExeNameThrows()
        {
            try
            {
                var basicUsage = ArgUsage.GetUsage<BasicArgs>();
            }
            catch (Exception ex)
            {
                Assert.IsInstanceOfType(ex, typeof(InvalidOperationException));
                Assert.IsTrue(ex.Message.ToLower().Contains("could not determine the name of your executable automatically"));
            }
        }