public void TestFileNameConstructorNullAppName()
{
bool threw = false;
try
{
new Config(VALID_FILE, (string)null);
}
catch (ArgumentNullException e)
{
threw = true;
Assert.IsTrue(e.Message.Contains(VALID_FILE), "Exception didn't contain the file");
}
Assert.IsTrue(threw, "Failed to throw an exception when given a null appName.");
}