public void TestUnexistingKeyReturnsNull() { _manager = new AppConfigProvider(); var value = _manager.Get("nonExisting"); Assert.IsNull(value); }
public void TestNoProviderReturnsEmptyString() { try { _manager = new AppConfigProvider(); ConfigurationManager.AppSettings["existingKey"] = "myValue"; var value = _manager.Get("existingKey"); Assert.AreEqual("myValue", value); } finally { ConfigurationManager.AppSettings["existingKey"] = null; } }