I have a framework under test, I want to test a method from public interface which user will call to show a ViewController with xib, I want to unit test this situation using XCTest, call to the method which does above described thing looks like this
testClass = [[AdGateMedia alloc] initWith:@"nac" and:@"1234" withParent:view];
[testClass showView];
The parent view controller is instance of calling view controller from host application which is using framework.
When testing this parent argument needs to be such that it will allow presenting of new controller possible.
There are two things 1. Is above type of testing possible ? 2. If yes how to do it using XCTest under iOS ?
Thanks