mirror of
https://github.com/zhigang1992/NTDCoreDataTableViewController.git
synced 2026-01-13 16:22:57 +08:00
Test Sut’s performFetch method is called after creating new FRC.
This commit is contained in:
@@ -84,4 +84,14 @@
|
||||
XCTAssertTrue([(NTDFakeCDTVC *)sut loggedError]);
|
||||
}
|
||||
|
||||
- (void)testSutsPerformFetchIsCalledAfterCreatingNewFrc
|
||||
{
|
||||
// given
|
||||
sut = [[NTDFakeCDTVC alloc] init];
|
||||
// when
|
||||
[sut fetchedResultsController];
|
||||
// then
|
||||
XCTAssertTrue([(NTDFakeCDTVC *)sut performFetchIsCalled]);;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -12,5 +12,6 @@
|
||||
|
||||
@property (nonatomic) BOOL loggedFailure;
|
||||
@property (nonatomic) BOOL loggedError;
|
||||
@property (nonatomic) BOOL performFetchIsCalled;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user