Check PSCs are created properly

This commit is contained in:
Saul Mora
2011-07-24 14:21:27 -06:00
parent 7c9fb1c165
commit 982393b3dd
2 changed files with 36 additions and 12 deletions

View File

@@ -62,4 +62,21 @@
assertThat([[defaultStore URL] absoluteString], endsWith(testStoreName));
}
- (void) testCanSetAUserSpecifiedErrorHandler
{
GHFail(@"Test Not Implemented");
}
- (void) testUserSpecifiedErrorHandlersAreTriggeredOnError
{
GHFail(@"Test Not Implemented");
}
- (void) testLogsErrorsToLogger
{
GHFail(@"Test Not Implemented");
}
@end

View File

@@ -12,7 +12,12 @@
- (void) testCreateCoodinatorWithSqlitePersistentStore
{
GHFail(@"Test Not Implemented");
NSPersistentStoreCoordinator *testCoordinator = [NSPersistentStoreCoordinator coordinatorWithSqliteStoreNamed:@"TestStore.sqlite"];
assertThatUnsignedInteger([[testCoordinator persistentStores] count], is(equalToUnsignedInteger(1)));
NSPersistentStore *store = [[testCoordinator persistentStores] objectAtIndex:0];
assertThat([store type], is(equalTo(NSSQLiteStoreType)));
}
- (void) testCreateCoordinatorWithInMemoryStore
@@ -27,18 +32,20 @@
- (void) testCanAddAnInMemoryStoreToAnExistingCoordinator
{
GHFail(@"Test Not Implemented");
}
NSPersistentStoreCoordinator *testCoordinator = [NSPersistentStoreCoordinator coordinatorWithSqliteStoreNamed:@"TestStore.sqlite"];
assertThatUnsignedInteger([[testCoordinator persistentStores] count], is(equalToUnsignedInteger(1)));
NSPersistentStore *firstStore = [[testCoordinator persistentStores] objectAtIndex:0];
assertThat([firstStore type], is(equalTo(NSSQLiteStoreType)));
[testCoordinator addInMemoryStore];
assertThatUnsignedInteger([[testCoordinator persistentStores] count], is(equalToUnsignedInteger(2)));
NSPersistentStore *secondStore = [[testCoordinator persistentStores] objectAtIndex:1];
assertThat([secondStore type], is(equalTo(NSInMemoryStoreType)));
- (void) testCanSetAUserSpecifiedErrroHandler
{
GHFail(@"Test Not Implemented");
}
- (void) testLogsErrorsToLogger
{
GHFail(@"Test Not Implemented");
}
@end