Commit Graph

13 Commits

Author SHA1 Message Date
NicholasTD07
23834f86e3 Deleted last test.
Because Sut’s performFetch method can not be called in the getter of Sut’s fetchedResultsController.
This will cause these two methods calling each other resulting in a infinite loop.
2014-03-10 17:29:10 +08:00
NicholasTD07
627ef15228 Test Sut’s performFetch method is called after creating new FRC. 2014-03-09 20:57:47 +08:00
NicholasTD07
dd8b02f3ee Code to pass the test. 2014-03-09 20:55:19 +08:00
NicholasTD07
02018e247c Test Sut logs error which occurs during FRC is fetching. 2014-03-09 13:19:51 +08:00
NicholasTD07
25acd6650a Renamed test to testSutWillLogFailureIfFRCsFetchFailed. 2014-03-09 13:14:48 +08:00
NicholasTD07
db4e2d521a Code to pass the test. 2014-03-09 13:12:49 +08:00
NicholasTD07
f80bc3a7be Test if Frc’s fetch fails then sut’s log is called. 2014-03-09 12:53:17 +08:00
NicholasTD07
b14fe736d7 Code and fake object to pass the test. 2014-03-09 11:52:55 +08:00
NicholasTD07
22194e7973 Test if tableView’s method reloadData is called when Sut’s performFetch is called. 2014-03-09 11:48:48 +08:00
NicholasTD07
949ec1e18d Added code and fake objects to pass the test. 2014-03-09 11:46:06 +08:00
NicholasTD07
e6ddb0c380 Test Frc’s performFetch is called when SUT’s performFetch is called.
When Sut’s fetchedResultsController is not nil, and its performFetch is called,
its fetchedResultsController’s performFetch method should be called.
2014-03-09 11:32:20 +08:00
NicholasTD07
ba5ae2aea0 Deleted testExample method in NTDCoreDataTableViewControllerTests. 2014-03-09 11:21:50 +08:00
NicholasTD07
e45f91b7c0 Added Tests folder in. 2014-03-08 16:42:44 +08:00