TutorialsAndTests/Tests/AtlFreeServerTests.cpp
TEST(AtlFreServerTests, RequireThat_CoCreateInstance_CreatesGuardDog_WhenCalledWithGuardDogUid)
{
    ComPtr<IDog> dog;
    HR(CoCreateInstance(__uuidof(GuardDog), nullptr, CLSCTX_INPROC_SERVER, __uuidof(IDog), &dog));
    EXPECT_NE(dog, nullptr); 
}
// Test that demonstrates how to create a COM object based upon its class id
Test that demonstrates how to create a COM object based upon its class id
Test that demonstrates how to create a COM object based upon its class id
TEST(AtlFreServerTests, RequireThat_CoCreateInstance_CreatesGuardDog_WhenCalledWithGuardDogUid)
{
    ComPtr<IDog> dog;
    HR(CoCreateInstance(__uuidof(GuardDog), nullptr, CLSCTX_INPROC_SERVER, __uuidof(IDog), &dog));
    EXPECT_NE(dog, nullptr); 
}
TEST ( AtlFreServerTests , RequireThat_CoCreateInstance_CreatesGuardDog_WhenCalledWithGuardDogUid ) { ComPtr < IDog > dog ; HR ( CoCreateInstance ( __uuidof ( GuardDog ) , nullptr , CLSCTX_INPROC_SERVER , __uuidof ( IDog ) , & dog ) ) ; EXPECT_NE ( dog , nullptr ) ; }
Test that demonstrates how to create a COM object based upon its class id
Test that demonstrates how to create a COM object based upon its class id