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);
}
}