コード例 #1
0
 public void should_store_keys_with_no_value()
 {
     var runtimeSettings = new PluginRuntimeSettings(@"justdoit+KEY2:Value2");
     Assert.True(runtimeSettings.ContainsPropertyNamed(@"justdoit"));
     Assert.Equal(string.Empty, runtimeSettings[@"justdoit"]);
     Assert.True(runtimeSettings.ContainsPropertyNamed(@"KEY2"));
 }
コード例 #2
0
            public void should_not_care_about_case_when_using_contains()
            {
                var runtimeSettings = new PluginRuntimeSettings(@"Key1:Value1+KEY2:Value2");

                Assert.True(runtimeSettings.ContainsPropertyNamed(@"key1"));
                Assert.True(runtimeSettings.ContainsPropertyNamed(@"KEY2"));
            }
コード例 #3
0
            public void should_return_value()
            {
                var runtimeSettings = new PluginRuntimeSettings(@"Key1:Value1+KEY2:Value2");

                Assert.Equal(@"Value1", runtimeSettings[@"key1"]);
                Assert.Equal(@"Value2", runtimeSettings[@"key2"]);
            }
コード例 #4
0
            public void should_store_keys_with_no_value()
            {
                var runtimeSettings = new PluginRuntimeSettings(@"justdoit+KEY2:Value2");

                Assert.True(runtimeSettings.ContainsPropertyNamed(@"justdoit"));
                Assert.Equal(string.Empty, runtimeSettings[@"justdoit"]);
                Assert.True(runtimeSettings.ContainsPropertyNamed(@"KEY2"));
            }
コード例 #5
0
 public void should_not_care_about_case_when_using_contains()
 {
     var runtimeSettings = new PluginRuntimeSettings(@"Key1:Value1+KEY2:Value2");
     Assert.True(runtimeSettings.ContainsPropertyNamed(@"key1"));
     Assert.True(runtimeSettings.ContainsPropertyNamed(@"KEY2"));
 }
コード例 #6
0
 public void should_return_value()
 {
     var runtimeSettings = new PluginRuntimeSettings(@"Key1:Value1+KEY2:Value2");
     Assert.Equal(@"Value1", runtimeSettings[@"key1"]);
     Assert.Equal(@"Value2", runtimeSettings[@"key2"]);
 }