@@ -153,76 +153,84 @@ final class StepperTests: XCTestCase {
153153 }
154154
155155 func testShapesNotNil( ) {
156- var expectedAppearance = StepperControl . Appearance ( shape: . rectangle)
156+ var expectedAppearance = StepperControl . Appearance ( layout : StepperControl . Appearance . Layout ( shape: . rectangle) )
157157 var sut = makeSUT ( appearance: expectedAppearance)
158158 let rectShape = sut. getShape ( )
159159
160- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
160+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
161161 XCTAssertNotNil ( rectShape)
162162
163- expectedAppearance = StepperControl . Appearance ( shape: . roundRect( cornerRadius: 10 ) )
163+ expectedAppearance = StepperControl . Appearance (
164+ layout: StepperControl . Appearance. Layout ( shape: . roundRect( cornerRadius: 10 ) )
165+ )
164166 sut. appearance = expectedAppearance
165167 let roundedRectShape = sut. getShape ( )
166168
167- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
169+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
168170 XCTAssertNotNil ( roundedRectShape)
169171
170- expectedAppearance = StepperControl . Appearance ( shape: . scaledRoundRect( cornerRadius: 10 ) )
172+ expectedAppearance = StepperControl . Appearance (
173+ layout: StepperControl . Appearance. Layout ( shape: . scaledRoundRect( cornerRadius: 10 ) )
174+ )
171175 sut. appearance = expectedAppearance
172176 let scaledRoundRect = sut. getShape ( )
173177
174- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
178+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
175179 XCTAssertNotNil ( scaledRoundRect)
176180
177- expectedAppearance = StepperControl . Appearance ( shape: . capsule)
181+ expectedAppearance = StepperControl . Appearance ( layout : StepperControl . Appearance . Layout ( shape: . capsule) )
178182 sut. appearance = expectedAppearance
179183 let capsuleShape = sut. getShape ( )
180184
181- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
185+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
182186 XCTAssertNotNil ( capsuleShape)
183187
184- expectedAppearance = StepperControl . Appearance ( shape: . none)
188+ expectedAppearance = StepperControl . Appearance ( layout : StepperControl . Appearance . Layout ( shape: . none) )
185189 sut. appearance = expectedAppearance
186190 let emptyView = sut. getShape ( )
187191
188- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
192+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
189193 XCTAssertNotNil ( emptyView)
190194 }
191195
192196 func testShapesWithoutStrokeNotNil( ) {
193- var expectedAppearance = StepperControl . Appearance ( shape: . rectangle)
197+ var expectedAppearance = StepperControl . Appearance ( layout : StepperControl . Appearance . Layout ( shape: . rectangle) )
194198 var sut = makeSUT ( appearance: expectedAppearance)
195199 let rectShape = sut. getShapeWithoutStroke ( )
196200
197- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
201+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
198202 XCTAssertNotNil ( rectShape)
199203
200- expectedAppearance = StepperControl . Appearance ( shape: . roundRect( cornerRadius: 10 ) )
204+ expectedAppearance = StepperControl . Appearance (
205+ layout: StepperControl . Appearance. Layout ( shape: . roundRect( cornerRadius: 10 ) )
206+ )
201207 sut. appearance = expectedAppearance
202208 let roundedRectShape = sut. getShapeWithoutStroke ( )
203209
204- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
210+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
205211 XCTAssertNotNil ( roundedRectShape)
206212
207- expectedAppearance = StepperControl . Appearance ( shape: . scaledRoundRect( cornerRadius: 10 ) )
213+ expectedAppearance = StepperControl . Appearance (
214+ layout: StepperControl . Appearance. Layout ( shape: . scaledRoundRect( cornerRadius: 10 ) )
215+ )
208216 sut. appearance = expectedAppearance
209217 let scaledRoundRect = sut. getShapeWithoutStroke ( )
210218
211- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
219+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
212220 XCTAssertNotNil ( scaledRoundRect)
213221
214- expectedAppearance = StepperControl . Appearance ( shape: . capsule)
222+ expectedAppearance = StepperControl . Appearance ( layout : StepperControl . Appearance . Layout ( shape: . capsule) )
215223 sut. appearance = expectedAppearance
216224 let capsuleShape = sut. getShapeWithoutStroke ( )
217225
218- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
226+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
219227 XCTAssertNotNil ( capsuleShape)
220228
221- expectedAppearance = StepperControl . Appearance ( shape: . none)
229+ expectedAppearance = StepperControl . Appearance ( layout : StepperControl . Appearance . Layout ( shape: . none) )
222230 sut. appearance = expectedAppearance
223231 let emptyView = sut. getShapeWithoutStroke ( )
224232
225- XCTAssertEqual ( sut. appearance. shape, expectedAppearance. shape)
233+ XCTAssertEqual ( sut. appearance. layout . shape, expectedAppearance. layout . shape)
226234 XCTAssertNotNil ( emptyView)
227235 }
228236
0 commit comments