File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ @implementation OCClassMockObject
2626
2727- (id )initWithClass : (Class )aClass
2828{
29+ NSParameterAssert (aClass != nil );
2930 [super init ];
3031 mockedClass = aClass;
3132 [self prepareClassForClassMethodMocking ];
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ @implementation OCPartialMockObject
2929
3030- (id )initWithObject : (NSObject *)anObject
3131{
32+ NSParameterAssert (anObject != nil );
3233 [self assertClassIsSupported: [anObject class ]];
3334 [super initWithClass: [anObject class ]];
3435 realObject = [anObject retain ];
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ @implementation OCProtocolMockObject
2424
2525- (id )initWithProtocol : (Protocol *)aProtocol
2626{
27+ NSParameterAssert (aProtocol != nil );
2728 [super init ];
2829 mockedProtocol = aProtocol;
2930 return self;
You can’t perform that action at this time.
0 commit comments