コード例 #1
0
        public void PropertySetter_Execute_MultipleParameters_ThrowsException()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("SomeProperty", config, 1, 2);
        }
コード例 #2
0
        public void PropertySetter_Execute_NullParameter_ThrowsException()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("SomeProperty", config, null);
        }
コード例 #3
0
        public void PropertySetter_Execute_EmptyArray_ThrowsException()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("SomeProperty", config);
        }
コード例 #4
0
        public void PropertySetter_Execute_ValidMethodNameAndStringValue_SetsConfigProperty()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("HasSomePropertySetTo", config, "Value");
            Assert.IsTrue(config.SomeProperty == "Value");
        }