@@ -68,25 +68,27 @@ void main() {
68
68
69
69
testUsingContext ('xcodeVersionSatisfactory is true when version meets minimum' , () {
70
70
when (mockXcodeProjectInterpreter.isInstalled).thenReturn (true );
71
- when (mockXcodeProjectInterpreter.majorVersion).thenReturn (10 );
72
- when (mockXcodeProjectInterpreter.minorVersion).thenReturn (2 );
71
+ when (mockXcodeProjectInterpreter.majorVersion).thenReturn (11 );
72
+ when (mockXcodeProjectInterpreter.minorVersion).thenReturn (0 );
73
+
73
74
expect (xcode.isVersionSatisfactory, isTrue);
74
75
}, overrides: < Type , Generator > {
75
76
XcodeProjectInterpreter : () => mockXcodeProjectInterpreter,
76
77
});
77
78
78
79
testUsingContext ('xcodeVersionSatisfactory is true when major version exceeds minimum' , () {
79
80
when (mockXcodeProjectInterpreter.isInstalled).thenReturn (true );
80
- when (mockXcodeProjectInterpreter.majorVersion).thenReturn (11 );
81
- when (mockXcodeProjectInterpreter.minorVersion).thenReturn (2 );
81
+ when (mockXcodeProjectInterpreter.majorVersion).thenReturn (12 );
82
+ when (mockXcodeProjectInterpreter.minorVersion).thenReturn (0 );
83
+
82
84
expect (xcode.isVersionSatisfactory, isTrue);
83
85
}, overrides: < Type , Generator > {
84
86
XcodeProjectInterpreter : () => mockXcodeProjectInterpreter,
85
87
});
86
88
87
89
testUsingContext ('xcodeVersionSatisfactory is true when minor version exceeds minimum' , () {
88
90
when (mockXcodeProjectInterpreter.isInstalled).thenReturn (true );
89
- when (mockXcodeProjectInterpreter.majorVersion).thenReturn (10 );
91
+ when (mockXcodeProjectInterpreter.majorVersion).thenReturn (11 );
90
92
when (mockXcodeProjectInterpreter.minorVersion).thenReturn (3 );
91
93
expect (xcode.isVersionSatisfactory, isTrue);
92
94
}, overrides: < Type , Generator > {
@@ -123,8 +125,8 @@ void main() {
123
125
.thenReturn (ProcessResult (1 , 127 , '' , 'ERROR' ));
124
126
125
127
when (mockXcodeProjectInterpreter.isInstalled).thenReturn (true );
126
- when (mockXcodeProjectInterpreter.majorVersion).thenReturn (10 );
127
- when (mockXcodeProjectInterpreter.minorVersion).thenReturn (2 );
128
+ when (mockXcodeProjectInterpreter.majorVersion).thenReturn (11 );
129
+ when (mockXcodeProjectInterpreter.minorVersion).thenReturn (0 );
128
130
129
131
expect (xcode.isInstalledAndMeetsVersionCheck, isFalse);
130
132
}, overrides: < Type , Generator > {
@@ -141,8 +143,9 @@ void main() {
141
143
.thenReturn (ProcessResult (1 , 0 , xcodePath, '' ));
142
144
143
145
when (mockXcodeProjectInterpreter.isInstalled).thenReturn (true );
144
- when (mockXcodeProjectInterpreter.majorVersion).thenReturn (9 );
145
- when (mockXcodeProjectInterpreter.minorVersion).thenReturn (0 );
146
+ when (mockXcodeProjectInterpreter.majorVersion).thenReturn (10 );
147
+ when (mockXcodeProjectInterpreter.minorVersion).thenReturn (2 );
148
+
146
149
expect (xcode.isInstalledAndMeetsVersionCheck, isFalse);
147
150
}, overrides: < Type , Generator > {
148
151
XcodeProjectInterpreter : () => mockXcodeProjectInterpreter,
@@ -158,8 +161,9 @@ void main() {
158
161
.thenReturn (ProcessResult (1 , 0 , xcodePath, '' ));
159
162
160
163
when (mockXcodeProjectInterpreter.isInstalled).thenReturn (true );
161
- when (mockXcodeProjectInterpreter.majorVersion).thenReturn (10 );
162
- when (mockXcodeProjectInterpreter.minorVersion).thenReturn (2 );
164
+ when (mockXcodeProjectInterpreter.majorVersion).thenReturn (11 );
165
+ when (mockXcodeProjectInterpreter.minorVersion).thenReturn (0 );
166
+
163
167
expect (xcode.isInstalledAndMeetsVersionCheck, isTrue);
164
168
}, overrides: < Type , Generator > {
165
169
XcodeProjectInterpreter : () => mockXcodeProjectInterpreter,
0 commit comments