mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-21 00:49:20 +01:00
WIP: objective C interface
This commit is contained in:
@@ -24,8 +24,10 @@
|
||||
//
|
||||
|
||||
#import "BridgingTests.h"
|
||||
#import <CoreStore/CoreStore-Swift.h>
|
||||
|
||||
@import CoreData;
|
||||
|
||||
@import CoreStore;
|
||||
|
||||
@implementation BridgingTests
|
||||
|
||||
@@ -39,6 +41,15 @@
|
||||
|
||||
[CSCoreStore setDefaultStack:dataStack];
|
||||
XCTAssertTrue([dataStack isEqual:[CSCoreStore defaultStack]]);
|
||||
|
||||
CSInMemoryStore *storage = [CSCoreStore
|
||||
addStorageAndWait:[CSInMemoryStore new]
|
||||
error:nil];
|
||||
XCTAssertNotNil(storage);
|
||||
XCTAssertEqual([[storage class] storeType], [CSInMemoryStore storeType]);
|
||||
XCTAssertEqual([[storage class] storeType], NSInMemoryStoreType);
|
||||
XCTAssertNil(storage.configuration);
|
||||
XCTAssertNil(storage.storeOptions);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user