OCMock test if method does nothing but is called

前端 未结 0 1204
生来不讨喜
生来不讨喜 2020-12-10 06:47

Using OCMock, how do I test if a method does nothing?

- (void)myMethod:(BOOL)active
{
    if (active) {
        // Set property or do whatever
    }
    // Do         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题