Class StubAchievementCondition
A condition a test drives by hand: it reports whatever the test set, and counts how often it
was asked, so a suite can prove a composite really did evaluate every child.
Inheritance
StubAchievementCondition
Assembly: Tests.dll
Syntax
public class StubAchievementCondition : AchievementCondition
Constructors
StubAchievementCondition()
Declaration
public StubAchievementCondition()
Properties
DisplayName
Declaration
public override string DisplayName { get; }
Property Value
IsMetCallCount
Declaration
public int IsMetCallCount { get; }
Property Value
KeepsState
Declaration
public bool KeepsState { get; set; }
Property Value
ListenedSignalTypeNames
The signal type names this condition claims to listen for.
Declaration
public List<string> ListenedSignalTypeNames { get; }
Property Value
Met
Whether this condition currently reports itself as met.
Declaration
public bool Met { get; set; }
Property Value
NeedsTick
Declaration
public override bool NeedsTick { get; }
Property Value
PersistsState
Declaration
public override bool PersistsState { get; }
Property Value
ProgressToReport
Declaration
public AchievementConditionProgress? ProgressToReport { get; set; }
Property Value
ResetCallCount
Declaration
public int ResetCallCount { get; }
Property Value
RestoredState
Declaration
public string RestoredState { get; }
Property Value
StateToCapture
Declaration
public string StateToCapture { get; set; }
Property Value
TicksWithTime
Declaration
public bool TicksWithTime { get; set; }
Property Value
ValidationError
Declaration
public string ValidationError { get; set; }
Property Value
Methods
CaptureState()
Declaration
public override string CaptureState()
Returns
CollectSignalTypeNames(ICollection<string>)
Declaration
public override void CollectSignalTypeNames(ICollection<string> sink)
Parameters
GetProgress(in AchievementEvaluationContext)
Pure on purpose, so a suite counting IsMetCallCount counts evaluations
rather than evaluations plus the progress read that follows each one.
Declaration
public override AchievementConditionProgress GetProgress(in AchievementEvaluationContext context)
Parameters
Returns
IsMet(in AchievementEvaluationContext)
Declaration
public override bool IsMet(in AchievementEvaluationContext context)
Parameters
Returns
Reset()
Declaration
public override void Reset()
RestoreState(string)
Declaration
public override void RestoreState(string state)
Parameters
| Type |
Name |
Description |
| string |
state |
|
Validate()
Declaration
public override string Validate()
Returns