Last active
January 4, 2016 14:42
-
-
Save Abizern/77976b89fc123704088e to your computer and use it in GitHub Desktop.
Test for OCMock installation into an Xcode project.
This file contains hidden or 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
| // | |
| // MockingTest.m | |
| // | |
| #import <OCMock/OCMock.h> | |
| @interface MockingTest : XCTestCase | |
| @end | |
| @implementation MockingTest | |
| - (void)testOCMockFunctions { | |
| id mock = [OCMockObject mockForClass:[NSString class]]; | |
| [[mock expect] uppercaseString]; | |
| // Uncomment the following line to make the test pass | |
| //[mock uppercaseString]; | |
| [mock verify]; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment