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
| - (void)testMethodExpectingNoError | |
| { | |
| id someObject = [self someMethodThatReturnsAnExpectedObject]; | |
| id mockDependencuy = OCMClassMock([DependencyToBeMocked class]); | |
| OCMStub([mockDependency someMethodWithErrorRef:[OCMArg anyObjectRef]).andReturn(someObject); | |
| NSError * error = nil; | |
| id someReturnedValue =[self.objectUnderTest someMethodWithErrorRef:&error]: | |
| XCTAssertNotNil(someReturnedValue); |
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
| // | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import <StoreKit/StoreKit.h> | |
| @protocol DRAppStoreManagerDelegate; | |
| #define DRAppStoreCallback(callback, object) if (callback) callback(object); |
NewerOlder