/// <summary> /// Tests to ensure that we get null instead of an exception if the key doesn't exist. /// </summary> public void ReturnNullGivenKeyDoesNotExist() { // Arrange // Act var exampleConfigurationSetting = new ExampleConfigurationSetting("SomeKeyThatShouldNeverBe"); // Assert Assert.True(exampleConfigurationSetting.Value.IsNull()); }
public void ReturnValueGivenNoLocationSpecificValueExists() { // Arrange // Act var exampleConfigurationSetting = new ExampleConfigurationSetting("UnitTestPlain"); // Assert Assert.True(exampleConfigurationSetting.Value.Equals("UnitTestPlain.VALUE")); }