Created
August 2, 2012 23:38
-
-
Save Rich86man/3242060 to your computer and use it in GitHub Desktop.
Initial try
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)testTabsGetNotified | |
{ | |
[[mockController stub] requestSessionId]; | |
[[mockController stub] endVisit]; | |
id mockVideoController = [OCMockObject partialMockForObject:playgroundController.videoController]; | |
id mockArtController = [OCMockObject partialMockForObject:playgroundController.artController]; | |
playgroundController.currentTab = NoTab; | |
[[mockVideoController expect] tabDidAppear]; | |
[playgroundController displayVideoTab]; | |
[[mockArtController expect] tabDidAppear]; | |
[[mockVideoController expect] tabDidDisappear]; | |
[playgroundController displayArtTab]; | |
[[mockVideoController expect] tabDidAppear]; | |
[[mockArtController expect] tabDidDisappear]; | |
[playgroundController displayVideoTab]; | |
[mockVideoController verify]; | |
[mockArtController verify]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment