Class FalseAssertValidator
- Namespace
- CloudyWing.FormValidators
- Assembly
- CloudyWing.FormValidators.dll
The false assert validator.
public class FalseAssertValidator : IFormValidator
- Inheritance
-
FalseAssertValidator
- Implements
- Inherited Members
Constructors
FalseAssertValidator(bool, string)
Initializes a new instance of the FalseAssertValidator class.
public FalseAssertValidator(bool isFalse, string errorMessage)
Parameters
FalseAssertValidator(Func<bool>, string)
Initializes a new instance of the FalseAssertValidator class.
public FalseAssertValidator(Func<bool> falsePredicate, string errorMessage)
Parameters
Properties
ErrorMessage
Gets the error message.
public string ErrorMessage { get; }
Property Value
- string
The error message.
IsValid
Returns true if ... is valid.
public bool IsValid { get; }
Property Value
- bool
trueif this instance is valid; otherwise,false.
Methods
Validate()
Validates this instance.
public bool Validate()
Returns
- bool
The validation result.