Closed AntoineGS closed 2 years ago
D2010 has some challenges with compiler issues, especially around generics and RTTI/TValue. I no longer have D2010 installed - FWIW I'm setting the min supported version for all my open source projects to XE2 due to those issues in earlier versions.
Thanks I'll simply use the other options (using [SetupFixture] and AfterConstruction).
I was trying to get the tests to pass on D2010 and noticed that the TValueHelperTests.Create never gets called in D2010 (confirmed working in Berlin but it calls the constructor differently; using RTTI). things.
Overriding
FFixtureInstance := FTestClass.Create;
gets called fromDUnitX.TestFixture
andFTestClass
does resolve toTValueHelperTests
.TObject.Create
does get called though. I've tried usingreintroduce
on the constructor that has also not worked. It seems like usingTClass
does not work with reintroduced constructors so this might be one of thoseAfterConstruction
works fine.Someone has an idea of a different approach?
Thanks!