TEST(GTestImmutable, TestInstanceOf) { GTestImmutable::CPtr p = GTestImmutable::create(); ASSERT_TRUE(p->instanceof(Type<GTestImmutable>::id())); ASSERT_TRUE(p->instanceof(Type<Immutable>::id())); ASSERT_TRUE(p->instanceof(Type<Object>::id())); ASSERT_FALSE(p->instanceof(Type<Mutable>::id())); }