Class RuleAssertResult
Represents the result for a rule firing assertion.
public sealed class RuleAssertResult
- Inheritance
-
RuleAssertResult
- Inherited Members
Constructors
RuleAssertResult(string?, RuleAssertStatus, string, object, object)
Initializes a new instance of the RuleAssertResult class.
public RuleAssertResult(string? ruleName, RuleAssertStatus status, string assertionText, object expected, object actual)
Parameters
ruleName
stringName of the rule corresponding to the assertion.
status
RuleAssertStatusAssertion outcome.
assertionText
stringText that describes the assertion.
expected
objectExpected outcome.
actual
objectActual outcome.
Properties
Actual
Gets the actual assertion outcome.
public object Actual { get; }
Property Value
AssertionText
Gets the text that describes the assertion.
public string AssertionText { get; }
Property Value
Expected
Gets the expected assertion outcome.
public object Expected { get; }
Property Value
RuleName
Gets the name of the rule corresponding to the assertion.
public string? RuleName { get; }
Property Value
Status
Gets the rule assertion outcome.
public RuleAssertStatus Status { get; }
Property Value
Methods
GetMessage()
Gets the message that describes the assertion outcome.
public string GetMessage()