public void ConfigurationWithInvalidRuleElementShouldThrowOnMissingAttribute() { DerivedRuleElement.Deserialize("<rule name=\"MockRule\" type=\"BuildCop.Test.Mocks.MockRuleInvalid, BuildCop.Test\"><dummy/></rule>"); }
public void ConfigurationWithInvalidRuleElementShouldThrowOnWrongConfigurationDefinition() { DerivedRuleElement.Deserialize("<rule name=\"MockRule\" type=\"BuildCop.Test.Mocks.MockRuleInvalidConfigurationDefinition, BuildCop.Test\"><dummy/></rule>"); }
public void ConfigurationWithInvalidRuleElementShouldThrowOnWrongBaseType() { DerivedRuleElement.Deserialize("<rule name=\"MockRule\" type=\"System.String\"><dummy/></rule>"); }