public void AssertArchRuleTest() { Assert.ArchRule(Architecture, TrueArchRule1); Assert.ArchRule(Architecture, TrueArchRule2); var exception1 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule1)); var exception2 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule2)); var exception3 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule3)); var exception4 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule4)); var exception5 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule5)); var exception6 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule6)); var exception7 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule7)); var exception8 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule8)); var exception1And3 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule1AndWrongArchRule3)); var exception4And8 = Assert.Throws <FailedArchRuleException>(() => Assert.ArchRule(Architecture, WrongArchRule4AndWrongArchRule8)); Assert.Equal(_expectedWrongArchRule1ErrorMessage, exception1.Message); Assert.Equal(_expectedWrongArchRule2ErrorMessage, exception2.Message); Assert.Equal(_expectedWrongArchRule3ErrorMessage, exception3.Message); Assert.Equal(_expectedWrongArchRule4ErrorMessage, exception4.Message); Assert.Equal(_expectedWrongArchRule5ErrorMessage, exception5.Message); Assert.Equal(_expectedWrongArchRule6ErrorMessage, exception6.Message); Assert.Equal(_expectedWrongArchRule7ErrorMessage, exception7.Message); Assert.Equal(_expectedWrongArchRule8ErrorMessage, exception8.Message); Assert.Equal(_expectedWrongArchRule1AndWrongArchRule3ErrorMessage, exception1And3.Message); Assert.Equal(_expectedWrongArchRule4AndWrongArchRule8ErrorMessage, exception4And8.Message); }