I am currently writing a test for a bug I've encountered, where the order of calls in the production code is incorrect, leading to a potential race condition.
What is the cleanest way to check the order of calls from the test code, using XCTest?
In OCMock/Objective-C we had setExpectationOrderMatters
, as per this question. However I am not aware of similar functionality available in XCTest/Swift due to dynamic/static language differences.