ArgsTests.BasicTests.TestBasicUsageWithNoExeNameThrows C# (CSharp) Метод

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

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