Files
MapLibreParticleLab/mapbox-gl-native-ios/platform/ios/test/MGLAccountManagerTests.m
2020-12-16 17:28:37 +01:00

26 lines
445 B
Objective-C

#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