Code formatting
This commit is contained in:
@@ -105,7 +105,7 @@ end;
|
||||
|
||||
function TTestMycDirtyFlag.CreateAndPrepareDirtyFlag(StartDirty: Boolean = True): TFlag.IFlag;
|
||||
begin
|
||||
Result := TFlag.CreateFlag( true ); // Initially dirty
|
||||
Result := TFlag.CreateFlag(true); // Initially dirty
|
||||
if not StartDirty then
|
||||
Result.Reset; // Reset to make it clean
|
||||
Assert.AreEqual(StartDirty, Result.State.IsSet, 'CreateAndPrepareDirtyFlag initial state incorrect.');
|
||||
@@ -127,9 +127,9 @@ procedure TTestMycDirtyFlag.TestCreate_InitialStateIsDirty;
|
||||
var
|
||||
dirtyFlag: TFlag.IFlag;
|
||||
begin
|
||||
dirtyFlag := TFlag.CreateFlag( true );
|
||||
dirtyFlag := TFlag.CreateFlag(true);
|
||||
Assert.IsTrue(dirtyFlag.State.IsSet, 'Newly created dirty flag should be IsSet.');
|
||||
dirtyFlag := TFlag.CreateFlag( false );
|
||||
dirtyFlag := TFlag.CreateFlag(false);
|
||||
Assert.IsFalse(dirtyFlag.State.IsSet, 'Newly created dirty flag should not be IsSet.');
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user