Skip to content

DUnitLite doesn't compile for Delphi 2010+ #1

@GoogleCodeExporter

Description

@GoogleCodeExporter
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.com on 27 Jun 2013 at 8:38

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions