Ejemplo n.º 1
0
        public void PropertySetter_Execute_MultipleParameters_ThrowsException()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("SomeProperty", config, 1, 2);
        }
Ejemplo n.º 2
0
        public void PropertySetter_Execute_NullParameter_ThrowsException()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("SomeProperty", config, null);
        }
Ejemplo n.º 3
0
        public void PropertySetter_Execute_EmptyArray_ThrowsException()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("SomeProperty", config);
        }
Ejemplo n.º 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");
        }