Open
Description
I was thinking this morning about unit testing a factory class. With a certain set of parameters I need to check that the emitted object is of the correct type. I think this will be similar to the CHECK_EXCEPTION macro.
struct TypeA { };
struct TypeB { };
TEST(MakeSureTypeAIsReturnedWithACertainSetOfParameters)
{
// ... set parameters
CHECK_TYPE(TypeA, DoSomethingThatShouldReturnAnObjectOfTypeA(...));
}