Class SignalReceivedConditionTests
Behavioral tests for SignalReceivedCondition: counting only matching signals, tolerating the assembly identity in an authored name, progress, validation, reset, and the capture/restore round trip that lets a tally survive a relaunch.
Inherited Members
Namespace: Serenity.Achievements.Tests.Conditions
Assembly: Tests.dll
Syntax
public class SignalReceivedConditionTests
Constructors
SignalReceivedConditionTests()
Declaration
public SignalReceivedConditionTests()
Methods
AnImpossibleRequiredCount_BehavesAsOne(int)
Declaration
public void AnImpossibleRequiredCount_BehavesAsOne(int authoredCount)
Parameters
| Type | Name | Description |
|---|---|---|
| int | authoredCount |
CaptureState_RoundTripsTheTallyIntoAFreshCondition()
Declaration
public void CaptureState_RoundTripsTheTallyIntoAFreshCondition()
CollectSignalTypeNames_ReportsTheAuthoredName()
Declaration
public void CollectSignalTypeNames_ReportsTheAuthoredName()
GetProgress_ReportsTheTallyWithoutCountingTheSignalASecondTime()
Declaration
public void GetProgress_ReportsTheTallyWithoutCountingTheSignalASecondTime()
IsMet_IgnoresSignalsOfAnotherType()
Declaration
public void IsMet_IgnoresSignalsOfAnotherType()
IsMet_IsFalse_UntilTheRequiredNumberOfSignalsArrived()
Declaration
public void IsMet_IsFalse_UntilTheRequiredNumberOfSignalsArrived()
IsMet_MatchesAnAssemblyQualifiedNameWhoseAssemblyVersionMoved()
Declaration
public void IsMet_MatchesAnAssemblyQualifiedNameWhoseAssemblyVersionMoved()
Reset_ForgetsTheTally()
Declaration
public void Reset_ForgetsTheTally()
RestoreState_IgnoresStateItCannotRead()
Declaration
public void RestoreState_IgnoresStateItCannotRead()
Validate_ReportsAMissingSignalTypeAndAnImpossibleCount()
Declaration
public void Validate_ReportsAMissingSignalTypeAndAnImpossibleCount()