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