public void Set_ThrowsArgumentNullException_IfNullOrEmptyNamePassed(string name) { Action action = () => appSettings.Set(name, 123); action.ShouldThrow <ArgumentNullException>(); }
public void Set_Respects_KeySpecificity(KeySpecificity keySpecificity, string expectedKey) { var keySpecificAppSetting = new ConsulAppSettings(keySpecificity); VerifySetEndpoint(() => keySpecificAppSetting.Set(SlashKey, 123), "true", expectedKey); }
public void Set_ThrowsArgumentNullException_IfNullOrEmptyNamePassed(string name) { Assert.Throws <ArgumentNullException>(() => appSettings.Set(name, 123)); }