public void Successful_ShouldReturnWithNoErrors() { var result = ObjectVerificationResult.Successful(); Assert.IsFalse(result.Failed); Assert.IsNull(result.Errors); }
public void Failure_ShouldReturnWithErrors() { var errors = new[] { "error" }; var result = ObjectVerificationResult.Failure(errors); Assert.IsTrue(result.Failed); Assert.AreEqual(errors.Length, result.Errors.Count()); }