File tree Expand file tree Collapse file tree
Tests/XcodeProjTests/Scheme Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ final class XCSchemeIntegrationTests: XCTestCase {
88 let subject = try XCScheme ( path: iosSchemePath)
99 assert ( scheme: subject)
1010 }
11-
11+
1212 func test_write_iosScheme( ) {
1313 testWrite ( from: iosSchemePath,
1414 initModel: { try ? XCScheme ( path: $0) } ,
@@ -84,6 +84,18 @@ final class XCSchemeIntegrationTests: XCTestCase {
8484 XCTAssertEqual ( subject. attributes [ " reference " ] , " to_some_paht " )
8585 XCTAssertEqual ( subject. attributes [ " default " ] , " YES " )
8686 }
87+
88+ func test_testAction_serializingAndDeserializing( ) throws {
89+ // Given
90+ let subject = XCScheme . TestAction ( buildConfiguration: " Debug " , macroExpansion: nil )
91+
92+ // When
93+ let element = subject. xmlElement ( )
94+ let reconstructedSubject = try XCScheme . TestAction ( element: element)
95+
96+ // Then
97+ XCTAssertEqual ( subject, reconstructedSubject)
98+ }
8799
88100 // MARK: - Private
89101
You can’t perform that action at this time.
0 commit comments