Adds cocoapods for libraries.
Adds OCMockito and OCHamcrest libs.
This commit is contained in:
25
iOS/Pods/OCHamcrest/Source/Library/Object/HCIsInstanceOf.m
generated
Normal file
25
iOS/Pods/OCHamcrest/Source/Library/Object/HCIsInstanceOf.m
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
||||
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
||||
|
||||
#import "HCIsInstanceOf.h"
|
||||
|
||||
|
||||
@implementation HCIsInstanceOf
|
||||
|
||||
- (BOOL)matches:(nullable id)item
|
||||
{
|
||||
return [item isKindOfClass:self.theClass];
|
||||
}
|
||||
|
||||
- (NSString *)expectation
|
||||
{
|
||||
return @"an instance of ";
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
id HC_instanceOf(Class expectedClass)
|
||||
{
|
||||
return [[HCIsInstanceOf alloc] initWithClass:expectedClass];
|
||||
}
|
||||
Reference in New Issue
Block a user