Converted BidManagerTests from Objective-C to Swift.
In doing so:
Removed external library use of OCMock.
Removed entire test-suite setups, in favor of a test-by-test mocking approach.
Implemented lazily loaded mocking objects that are created as on-demand basis.
Implemented easy scalable mocking by using subclassing.
BidManager ObjC tests: 51 total.
BidManager Swift tests: 49 total.
The test testGetEmptyBidForAdUnitInSilentMode was removed because it was testing the same case scenario as testGetBidUncachedAdUnitInSilentMode.
The test testLiveBid_GivenConcurrentCalls_ThenBidsFromResponsesGivenWithOrder was removed because in order to simulate the conditions to test it becomes so artificial and forced that it becomes irrelevant.
Converted
BidManagerTests
fromObjective-C
toSwift
. In doing so:OCMock
.BidManager
ObjC
tests: 51 total. BidManagerSwift
tests: 49 total.testGetEmptyBidForAdUnitInSilentMode
was removed because it was testing the same case scenario astestGetBidUncachedAdUnitInSilentMode
.testLiveBid_GivenConcurrentCalls_ThenBidsFromResponsesGivenWithOrder
was removed because in order to simulate the conditions to test it becomes so artificial and forced that it becomes irrelevant.