Refactoring
This commit is contained in:
@@ -148,11 +148,11 @@ end;
|
||||
procedure TTestFuture.TestConstructWithDelayedGate;
|
||||
var
|
||||
fut: TFuture<Integer>;
|
||||
delayedGate: IMycEvent; // IMycEvent implements IMycState [cite: 58]
|
||||
delayedGate: IMycLatch; // IMycLatch implements IMycState [cite: 58]
|
||||
resultValue: Integer;
|
||||
begin
|
||||
delayedGate := TEvent.CreateLatch(1); // Create a latch that requires one notification to be set [cite: 66]
|
||||
Assert.IsNotNull(delayedGate, 'The delayed gate (IMycEvent) should not be nil.'); // Static string
|
||||
delayedGate := TLatch.CreateLatch(1); // Create a latch that requires one notification to be set [cite: 66]
|
||||
Assert.IsNotNull(delayedGate, 'The delayed gate (IMycLatch) should not be nil.'); // Static string
|
||||
Assert.IsFalse(delayedGate.State.IsSet, 'The delayed gate should not be initially set.'); // Static string [cite: 59, 55]
|
||||
|
||||
// Construct a future with a gate that is not yet set
|
||||
@@ -220,10 +220,10 @@ procedure TTestFuture.TestChainWithGate;
|
||||
var
|
||||
fut1: TFuture<Integer>;
|
||||
fut2: TFuture<string>;
|
||||
delayedGate: IMycEvent;
|
||||
delayedGate: IMycLatch;
|
||||
resultValue: string;
|
||||
begin
|
||||
delayedGate := TEvent.CreateLatch(1); // [cite: 66]
|
||||
delayedGate := TLatch.CreateLatch(1); // [cite: 66]
|
||||
Assert.IsFalse(delayedGate.State.IsSet, 'The delayed gate for chain test should not be initially set.');
|
||||
// Static string [cite: 59, 55]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user