Class RecordingEventDispatcherServiceTests
Guards RecordingEventDispatcherService against the race that flaked
BlobScreenshotUnlockFlowTests.Unlock_StoresTheFrameAndStampsItsKeyOnTheRecordAndTheSignal:
a fire-and-forget dispatch resuming on a thread-pool thread, mutating the same list the test
thread was enumerating.
Inherited Members
Namespace: Serenity.Tests.Shared
Assembly: Tests.dll
Syntax
public class RecordingEventDispatcherServiceTests
Constructors
RecordingEventDispatcherServiceTests()
Declaration
public RecordingEventDispatcherServiceTests()
Methods
Dispatch_WithASubscriber_StillInvokesItWithTheDispatchedSignal()
Declaration
public void Dispatch_WithASubscriber_StillInvokesItWithTheDispatchedSignal()
Dispatch_WithReenterOnDispatchSet_DoesNotReenterOnTheNestedDispatch()
Declaration
public void Dispatch_WithReenterOnDispatchSet_DoesNotReenterOnTheNestedDispatch()
Dispatch_WithReenterOnDispatchSet_FiresOnceAndRecordsTheReentrantDispatch()
Declaration
public void Dispatch_WithReenterOnDispatchSet_FiresOnceAndRecordsTheReentrantDispatch()
Dispatch_WithThrowOnDispatchSet_ThrowsInsteadOfRecording()
Declaration
public void Dispatch_WithThrowOnDispatchSet_ThrowsInsteadOfRecording()
Dispatch_WithThrowOnDispatchSet_ThrowsOnEveryCall()
Declaration
public void Dispatch_WithThrowOnDispatchSet_ThrowsOnEveryCall()
DispatchedSignals_ReadAfterAFurtherDispatch_KeepsTheEarlierSnapshotUnchanged()
Declaration
public void DispatchedSignals_ReadAfterAFurtherDispatch_KeepsTheEarlierSnapshotUnchanged()
SignalsOf_WhileAnotherThreadDispatches_NeverThrowsAndRecordsEveryDispatch()
Declaration
public Task SignalsOf_WhileAnotherThreadDispatches_NeverThrowsAndRecordsEveryDispatch()
Returns
| Type | Description |
|---|---|
| Task |