XCTest Compatibility

To ease in porting or sharing tests with Apple Swift, EUnit provides a small compatibility wrapper that makes its API look identical to XCTest's API.

Essentially, this is done through a type alias of XCTestCase to Test, and reoplication of all of XCTest's Assert methods to map to the appropriate underlying EUNit Assert calls. These are defined in the RemObjects.Elements.EUnit.XCTest namespace.

With these APIs, exciting XCTest-based tests should run out of the box, and/or convert easily.

The XCTest wrappers are available for all four Platforms and all four languages, but is probably most useful with Swift.

import RemObjects.Elements.EUnit.XCTest

class MyTests : XCTestCase {
    func test1() {
        XCTAssertEqual("a", "b")
    }
}