Class to be mocked
class Address
{
Address() {};
virtual ~Address(){}
void SetCountry(string country);
static void SetCountry(string country, string country1);
static void SetCountry(string country, string country1, string country2);
static void SetCountry(string country, string country1, string country2, string country3="");
}
Mocking code
TEST_METHOD(AssertCallWasNotMadeOnStaticDependency)
{
FAKE_STATICS<Address>(); // It will fail here. The same works if destructor is not virtual
}