Class ShadowDifference
- Namespace
- IntentSharp.Guardrails
- Assembly
- IntentSharp.dll
A rule whose verdict in a check differs between the running version of its rule document and a version run side by side (Shadows). It names the rule, its subject and both verdicts, and never a subject's value, a rule's pattern or values, or a message, so it is safe to log and to keep.
[Experimental("INTENTSHARP002")]
public sealed class ShadowDifference
- Inheritance
-
objectShadowDifference
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Remarks
A rule that one version has and the other does not counts as passing in the version without it, so a rule only the candidate has shows here when it fails, and a rule only the running version has shows here when it fails.
Constructors
- ShadowDifference()
Creates a difference. The check creates these; a test or a custom source may create its own.
Properties
- CandidatePasses
True when the side-by-side version's rule passed in this check, or that version has no such rule.
- Document
The rule document the side-by-side version belongs to.
- RuleId
The rule's id.
- RunningPasses
True when the running version's rule passed in this check, or the running version has no such rule.
- Sequence
The sequence of the version run side by side.
- Set
The name of the rule set the rule belongs to.
- Subject
The subject the rule checks: the side-by-side version's when it has the rule, else the running version's.