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