I am doing OCMocktest for methods that will return some value. How to implement for void methods. Eg a method that calculates Simple interest. But it doesot return any value. How can check the calculation functionality?
-(void)calculateSI
{
float Result= PXnXr/100;
}
How to check whether Result=100 using OCMock? Can I implement only for methods that has return type?
How to test whether calculateSI method is called or not?
How to test whether Result=100?