VSoftTechnologies/DUnitX

DUnitX.Tests.Utils' TValueHelperTests.Create not called in D2010

AntoineGS opened this issue · 2 comments

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).
FFixtureInstance := FTestClass.Create; gets called from DUnitX.TestFixture and FTestClass does resolve to TValueHelperTests. TObject.Create does get called though.
I've tried using reintroduce on the constructor that has also not worked.
It seems like using TClass does not work with reintroduced constructors so this might be one of those things.
Overriding AfterConstruction works fine.

Someone has an idea of a different approach?

Thanks!

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).