public void PropertySetter_Execute_MultipleParameters_ThrowsException() { var propertySetter = new PropertySetter(); dynamic config = new DynamicConfiguration(); propertySetter.Execute("SomeProperty", config, 1, 2); }
public void PropertySetter_Execute_NullParameter_ThrowsException() { var propertySetter = new PropertySetter(); dynamic config = new DynamicConfiguration(); propertySetter.Execute("SomeProperty", config, null); }
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"); }