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 replication 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, existing XCTest-based tests should run out of the box, and/or convert easily.
The XCTest wrappers are available for all Platforms and all languages, but are probably most useful with Swift.
import RemObjects.Elements.EUnit.XCTest
class MyTests : XCTestCase {
func test1() {
XCTAssertEqual("a", "b")
}
}