File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
Tests/YCoreUITests/Extensions/UIKit Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 9
9
import XCTest
10
10
11
11
final class UIViewConstrainEdgesTests : XCTestCase {
12
- let edges : [ NSDirectionalRectEdge ] = [
13
- . top,
14
- . leading,
15
- . bottom,
16
- . trailing,
17
- . all,
18
- . horizontal,
19
- . vertical,
20
- . notTop,
21
- . notLeading,
22
- . notBottom,
23
- . notTrailing
24
- ]
25
-
26
12
func testSimple( ) {
27
13
let ( sut, insets) = makeSUT ( )
28
14
let constraints = sut. view1. constrainEdges ( with: insets)
@@ -65,9 +51,23 @@ final class UIViewConstrainEdgesTests: XCTestCase {
65
51
XCTAssertEqual ( trailing? . constant, - insets. trailing)
66
52
}
67
53
54
+ // swiftlint:disable function_body_length
68
55
func testPartialEdges( ) {
69
56
let ( sut, _) = makeSUT ( )
70
-
57
+ let edges : [ NSDirectionalRectEdge ] = [
58
+ . top,
59
+ . leading,
60
+ . bottom,
61
+ . trailing,
62
+ . all,
63
+ . horizontal,
64
+ . vertical,
65
+ . notTop,
66
+ . notLeading,
67
+ . notBottom,
68
+ . notTrailing
69
+ ]
70
+
71
71
let button = UIButton ( )
72
72
73
73
edges. forEach {
You can’t perform that action at this time.
0 commit comments