diff --git a/Tests/XCTestExtensionsTests/XCTestExtensionsTests.swift b/Tests/XCTestExtensionsTests/XCTestExtensionsTests.swift index a7d64f8..4cfe703 100644 --- a/Tests/XCTestExtensionsTests/XCTestExtensionsTests.swift +++ b/Tests/XCTestExtensionsTests/XCTestExtensionsTests.swift @@ -58,14 +58,26 @@ final class XCTestExtensionsTests: XCTestCase { let ok1 = ExampleResult.success(1) + XCTAssertSuccess(ok1) { + XCTAssertEqual($0, 1) + } + XCTAssertEqual(ok1, ExampleResult.success(1)) XCTAssertNotEqual(ok1, ExampleResult.success(2)) XCTAssertNotEqual(ok1, ExampleResult.failure(ExampleError())) let failed = ExampleResult.failure(ExampleError()) + + XCTAssertFailure(failed) { + XCTAssertTrue($0 is ExampleError) + } XCTAssertEqual(failed, ExampleResult.failure(ExampleError())) XCTAssertNotEqual(failed, ExampleResult.failure(NSError(domain: "test", code: 123, userInfo: [:]) )) XCTAssertNotEqual(failed, ExampleResult.success(1)) } + + func testCollections() { + XCTAssertEmpty([]) + } } diff --git a/Tests/XCTestExtensionsTests/XCTestManifests.swift b/Tests/XCTestExtensionsTests/XCTestManifests.swift index 499ee53..d0b10ea 100644 --- a/Tests/XCTestExtensionsTests/XCTestManifests.swift +++ b/Tests/XCTestExtensionsTests/XCTestManifests.swift @@ -9,8 +9,10 @@ extension XCTestExtensionsTests { ("testFlags", testFlags), ("testProductsDirectory", testProductsDirectory), ("testResources", testResources), + ("testResults", testResults), ("testTemporaryFile", testTemporaryFile), ("testTestBundle", testTestBundle), + ("testTestBundleName", testTestBundleName), ] }