public void PropertySetter_Execute_NullParameter_ThrowsException()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("SomeProperty", config, null);
        }
        public void PropertySetter_Execute_MultipleParameters_ThrowsException()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("SomeProperty", config, 1, 2);
        }
        public void PropertySetter_Execute_EmptyArray_ThrowsException()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("SomeProperty", config);
        }
        public void PropertySetter_Execute_ValidMethodNameAndStringValue_SetsConfigProperty()
        {
            var propertySetter = new PropertySetter();
            dynamic config = new DynamicConfiguration();

            propertySetter.Execute("HasSomePropertySetTo", config, "Value");
            Assert.IsTrue(config.SomeProperty == "Value");
        }
 public void PropertySetter_IsMatch_ValidSuffixInvalidPrefix_ReturnsFalse()
 {
     var settter = new PropertySetter();
     Assert.IsFalse(settter.IsMatch("SomePropertySetTo"));
 }
 public void PropertySetter_IsMatch_ValidMethodName_ReturnsTrue()
 {
     var settter = new PropertySetter();
     Assert.IsTrue(settter.IsMatch("HasSomePropertySetTo"));
 }
 public void PropertySetter_IsMatch_RandomMethodName_ReturnsFalse()
 {
     var settter = new PropertySetter();
     Assert.IsFalse(settter.IsMatch("SomeRandomName"));
 }
 public void PropertySetter_IsMatch_NullPropertyName_ReturnsFalse()
 {
     var settter = new PropertySetter();
     Assert.IsFalse(settter.IsMatch("HasSetTo"));
 }