public void TestAppNameConstructorNullName() { bool threw = false; try { new Config(null); } catch (ArgumentNullException) { threw = true; } Assert.IsTrue(threw, "Failed to throw an exception when given a null appName."); }