Ignore |
Top Previous Next |
When a void method needs to be faked, use the Ignore() API. This method can also be used on live instances, to make just one of the functions of a live object fake.
TEST_F(Examples, FakingVoidMethods) { Address address;
WHEN_CALLED(address.SetCountry(ANY_VAL(string))).Ignore();
address.SetCountry("Antartica");
ISOLATOR_CLEANUP(); } |
Copyright Typemock Ltd. 2009-2025. All Rights Reserved.