Mocking Arg.IsAny fails when set contains over 64 entries

Issue #393 duplicate
Melanie Eich created an issue

Hello,

we have encountered a problem in mocking by calling the function Arg.IsAny with a set. The enumeration as the basis of the set contains more than 64 entries.

Further investigation revealed that the function TMatcherFactory.CreateMatchers fails internally in conditionStack[GetIndex(indizes[i])] when trying to convert the set via AsOrdinal.

The raised exception is class EInvalidCast with message ‘Invalid class typecast’.

We have found a temporary workaround, but we wanted to report this bug.

Comments (2)

  1. Log in to comment