コード例 #1
0
        public void Set_ThrowsArgumentNullException_IfNullOrEmptyNamePassed(string name)
        {
            Action action = () => appSettings.Set(name, 123);

            action.ShouldThrow <ArgumentNullException>();
        }
コード例 #2
0
        public void Set_Respects_KeySpecificity(KeySpecificity keySpecificity, string expectedKey)
        {
            var keySpecificAppSetting = new ConsulAppSettings(keySpecificity);

            VerifySetEndpoint(() => keySpecificAppSetting.Set(SlashKey, 123), "true", expectedKey);
        }
コード例 #3
0
 public void Set_ThrowsArgumentNullException_IfNullOrEmptyNamePassed(string name)
 {
     Assert.Throws <ArgumentNullException>(() => appSettings.Set(name, 123));
 }