public void IsValid_IsValid_ExpectFalse() { var attr = new ExpectedAttribute(new[] { "Danger", "Mouse" }, true); attr.IsValid("Mouse") .Should() .BeTrue(); }
public void GenerateMessage_True_ExpectNonNull() { var attr = new ExpectedAttribute(new[] { "Danger", "Mouse" }, true); attr.IsValid("Penfold"); attr.ErrorMessage .Should() .NotBeNull(); }