diff options
Diffstat (limited to 'platform/ios/test/MGLAccountManagerTests.m')
-rw-r--r-- | platform/ios/test/MGLAccountManagerTests.m | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/platform/ios/test/MGLAccountManagerTests.m b/platform/ios/test/MGLAccountManagerTests.m new file mode 100644 index 0000000000..fd59de2fd5 --- /dev/null +++ b/platform/ios/test/MGLAccountManagerTests.m @@ -0,0 +1,25 @@ +#import <XCTest/XCTest.h> +#import <Mapbox/Mapbox.h> + +@interface MBXAccounts: NSObject +@property (class, nonatomic, readonly) NSString *skuToken; +@end + +@implementation MBXAccounts + ++ (NSString *)skuToken { + return @"foo"; +} + +@end + +@interface MGLAccountManagerTests : XCTestCase +@end + +@implementation MGLAccountManagerTests + +- (void)testSKU { + XCTAssertTrue([[MGLAccountManager valueForKeyPath:@"skuToken"] isEqualToString:@"foo"]); +} + +@end |