|
@@ -909,7 +909,7 @@ end;
|
|
|
|
|
|
class procedure TAssert.AssertNotSame(Expected, Actual: TObject);
|
|
class procedure TAssert.AssertNotSame(Expected, Actual: TObject);
|
|
begin
|
|
begin
|
|
- AssertFalse(SExpectedNotSame, Expected = Actual);
|
|
|
|
|
|
+ AssertFalse(SExpectedNotSame, Expected = Actual,CallerAddr);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
@@ -1063,7 +1063,7 @@ begin
|
|
Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
|
|
Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
|
|
if aMessage<>'' then
|
|
if aMessage<>'' then
|
|
Msg:=aMessage+': '+Msg;
|
|
Msg:=aMessage+': '+Msg;
|
|
- AssertTrue(Msg,aClass='');
|
|
|
|
|
|
+ AssertTrue(Msg,aClass='',CallerAddr);
|
|
end;
|
|
end;
|
|
|
|
|
|
class procedure TAssert.AssertNoException(AMethod: TRunMethod);
|
|
class procedure TAssert.AssertNoException(AMethod: TRunMethod);
|
|
@@ -1135,7 +1135,7 @@ begin
|
|
Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
|
|
Msg:=Format(SErrUnexpectedException,[aClass,aExceptionMessage]);
|
|
if aMessage<>'' then
|
|
if aMessage<>'' then
|
|
Msg:=aMessage+': '+Msg;
|
|
Msg:=aMessage+': '+Msg;
|
|
- AssertTrue(Msg,aClass='');
|
|
|
|
|
|
+ AssertTrue(Msg,aClass='',CallerAddr);
|
|
end;
|
|
end;
|
|
|
|
|
|
class procedure TAssert.AssertNoException(AMethod: TRunLocalMethod);
|
|
class procedure TAssert.AssertNoException(AMethod: TRunLocalMethod);
|