Skip to content

Commit 14c5cae

Browse files
committed
Minor improvements in WrapDelphiTest.pas
1 parent db29eb0 commit 14c5cae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/WrapDelphiTest.pas

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ TTestWrapDelphi = class(TObject)
138138
[Test]
139139
procedure TestGetStaticArray;
140140
[Test]
141-
procedure TestMethodWithVarAndOverload;
141+
procedure TestMethodWithdOverloads;
142142
[Test]
143143
procedure TestFreeReturnedObject;
144144
[Test]
@@ -528,10 +528,12 @@ procedure TTestWrapDelphi.TestDynArrayParameters;
528528
Assert.IsTrue(TestRttiAccess.Fruits = [Orange]);
529529
end;
530530

531-
procedure TTestWrapDelphi.TestMethodWithVarAndOverload;
531+
procedure TTestWrapDelphi.TestMethodWithdOverloads;
532532
begin
533533
Rtti_Var.SetStringField('test');
534534
Assert.AreEqual('test', TestRttiAccess.StringField);
535+
Rtti_Var.SetStringField(123);
536+
Assert.AreEqual('123', TestRttiAccess.StringField);
535537
end;
536538

537539
procedure TTestRttiAccess.SetIndexed(I: Integer; const Value: Integer);

0 commit comments

Comments
 (0)