public void TestAppNameConstructorInvalidName()
{
bool threw = false;
try
{
new Config("NotThere");
}
catch (Exception e)
{
threw = true;
Assert.IsTrue(e.Message.Contains("NotThere"), "Exception didn't contain the appName");
}
Assert.IsTrue(threw, "Failed to throw an exception when given an invalid appName.");
}