Braintree.Tests.EnvironmentTest.ParseEnvironment_ThrowsException C# (CSharp) Метод

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

private ParseEnvironment_ThrowsException ( ) : void
Результат void
        public void ParseEnvironment_ThrowsException()
        {
            Exception exception = null;

            try {
                Environment.ParseEnvironment("QA_2");
            } catch (Exception localException) {
                exception = localException;
            }

            Assert.IsNotNull(exception);
            Assert.IsInstanceOf(typeof(ConfigurationException), exception);
            Assert.AreEqual("Unsupported environment: QA_2", exception.Message);
        }
    }