public void Check_for_lack_of_matching_error_message(ModelErrorTestMetadata test)
        {
            var exception = Assert.Throws <ModelErrorAssertionException>(() =>
                                                                         test.Item4(_modelErrorTest, NonError)
                                                                         );

            Assert.That(exception.Message, Is.EqualTo(string.Format("{0} {1} '{2}', but instead found '{3}'.", _initialExceptionMessage, test.Item1, NonError, _combinedErrors)));
        }
 public void Allow_for_chained_test_calls(ModelErrorTestMetadata test)
 {
     Assert.That(test.Item4(_modelErrorTest, test.Item2), Is.EqualTo(_modelTest));
 }
 public void Check_for_subsequent_error_message(ModelErrorTestMetadata test)
 {
     test.Item4(_modelErrorTest, test.Item3);
 }
 public void Check_for_first_error_message(ModelErrorTestMetadata test)
 {
     test.Item4(_modelErrorTest, test.Item2);
 }