The following example fails with:
FAIL: MyClass tests getClassReturnsConstructorForDouble
Expected: ?:
Actual: ?:
I think reflection is returning the correct types to you, but your test fails because objectClass and object.runtimeType are two seperate objects and therefore not equal to each other. If you convert them to string first they will equal each other:
expect(objectClass.toString(), equals(object.runtimeType.toString()));