Created
April 18, 2020 07:20
-
-
Save rbsgn/7c489e68c0381b9027af9041f3d3ffa2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RefactoredCatalogExportingTests: XCTestCase { | |
func test_Categories_Are_Exported_By_DisplayOrder() { | |
let fooCategory = CatalogCategory2(displayOrder: 1, name: "Foo") | |
let barCategory = CatalogCategory2(displayOrder: 2, name: "Bar") | |
let stubCatalog = StubCatalog(stubs: [fooCategory, barCategory]) | |
let catalogExporter = CatalogExporter() | |
let exportedCatalog = catalogExporter.export(stubCatalog) | |
XCTAssertEqual(exportedCatalog.count, 2) | |
XCTAssertEqual(exportedCatalog[0].name, "Foo") | |
XCTAssertEqual(exportedCatalog[1].name, "Bar") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment