You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
procedure TTestKeyValueList.TestSetAsInteger(IntVal: integer);
begin
FKVL.AsInteger['testkey'] := IntVal;
Assert.AreEqual(IntVal, FKVL.AsInteger['testkey']);
end;
The methods in FKVL are stubs, so they should fail. Problem is, they always pass.
Now, If I change the test implementation to:
procedure TTestKeyValueList.TestSetAsInteger(IntVal: integer);
begin
FKVL.AsInteger['testkey'] := IntVal;
Sleep(1); //This can be anything really, I can call FKVL.Count or other some such
Assert.AreEqual(IntVal, FKVL.AsInteger['testkey']);
end;
The test now works as intended. Weird.
The text was updated successfully, but these errors were encountered:
I have a test defined like so:
And Implemented like so:
The methods in FKVL are stubs, so they should fail. Problem is, they always pass.
Now, If I change the test implementation to:
The test now works as intended. Weird.
The text was updated successfully, but these errors were encountered: