When compiling with Delphi 2010+, DUnitLite compiles with the follow error:
[DCC Fatal Error] ConstraintTests.pas(683): F2051 Unit ConstraintTests was
compiled with a different version of Specifications.Should
Fix:
Change TSpecification from:
TSpecification = class(TInsulatedTest)
strict protected type
Given = Specifiers.Given;
Should = Specifiers.Should;
Specify = Specifiers.Specify;
end;
to:
TSpecification = class(TInsulatedTest)
strict protected type
Given = class(Specifiers.Given);
Should = class(Specifiers.Should);
Specify = class(Specifiers.Specify);
end;
Original issue reported on code.google.com by
ring....@gmail.comon 27 Jun 2013 at 8:38