@@ -39,7 +39,7 @@ public void VerifyIgnoreNonAssemblyInfoFile()
39
39
""" ) ;
40
40
}
41
41
42
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "SomeOtherFile.cs" } ] , this . projectFile ) ;
42
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "SomeOtherFile.cs" } ] , this . projectFile ) ;
43
43
}
44
44
45
45
[ Test ]
@@ -57,7 +57,7 @@ public void VerifyAttributeFoundCSharp([Values("AssemblyVersion", "AssemblyFileV
57
57
""" , attribute ) ;
58
58
}
59
59
60
- var ex = Assert . Throws < WarningException > ( ( ) => FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) , attribute ) ;
60
+ var ex = Assert . Throws < WarningException > ( ( ) => AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) , attribute ) ;
61
61
ex . ShouldNotBeNull ( ) ;
62
62
Assert . That ( ex . Message , Is . EqualTo ( "File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.cs" ) ) ;
63
63
}
@@ -78,7 +78,7 @@ public void VerifyUnformattedAttributeFoundCSharp([Values("AssemblyVersion", "As
78
78
""" , attribute ) ;
79
79
}
80
80
81
- var ex = Assert . Throws < WarningException > ( ( ) => FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) , attribute ) ;
81
+ var ex = Assert . Throws < WarningException > ( ( ) => AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) , attribute ) ;
82
82
ex . ShouldNotBeNull ( ) ;
83
83
Assert . That ( ex . Message , Is . EqualTo ( "File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.cs" ) ) ;
84
84
}
@@ -98,7 +98,7 @@ public void VerifyCommentWorksCSharp([Values("AssemblyVersion", "AssemblyFileVer
98
98
""" , attribute ) ;
99
99
}
100
100
101
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) ;
101
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) ;
102
102
}
103
103
104
104
[ Test ]
@@ -115,7 +115,7 @@ public void VerifyCommentWithNoNewLineAtEndWorksCSharp([Values("AssemblyVersion"
115
115
""" , attribute ) ;
116
116
}
117
117
118
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) ;
118
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) ;
119
119
}
120
120
121
121
[ Test ]
@@ -136,7 +136,7 @@ public class Temp
136
136
""" , attribute ) ;
137
137
}
138
138
139
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) ;
139
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) ;
140
140
}
141
141
142
142
[ Test ]
@@ -156,7 +156,7 @@ public class {0}
156
156
""" , attribute ) ;
157
157
}
158
158
159
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) ;
159
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } ] , this . projectFile ) ;
160
160
}
161
161
162
162
[ Test ]
@@ -174,7 +174,7 @@ Imports System.Reflection
174
174
""" , attribute ) ;
175
175
}
176
176
177
- var ex = Assert . Throws < WarningException > ( ( ) => FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) , attribute ) ;
177
+ var ex = Assert . Throws < WarningException > ( ( ) => AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) , attribute ) ;
178
178
ex . ShouldNotBeNull ( ) ;
179
179
Assert . That ( ex . Message , Is . EqualTo ( "File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.vb" ) ) ;
180
180
}
@@ -195,7 +195,7 @@ Imports System.Reflection
195
195
""" , attribute ) ;
196
196
}
197
197
198
- var ex = Assert . Throws < WarningException > ( ( ) => FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) , attribute ) ;
198
+ var ex = Assert . Throws < WarningException > ( ( ) => AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) , attribute ) ;
199
199
ex . ShouldNotBeNull ( ) ;
200
200
Assert . That ( ex . Message , Is . EqualTo ( "File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.vb" ) ) ;
201
201
}
@@ -215,7 +215,7 @@ Imports System.Reflection
215
215
""" , attribute ) ;
216
216
}
217
217
218
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) ;
218
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) ;
219
219
}
220
220
221
221
[ Test ]
@@ -232,7 +232,7 @@ Imports System.Reflection
232
232
""" , attribute ) ;
233
233
}
234
234
235
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) ;
235
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) ;
236
236
}
237
237
238
238
[ Test ]
@@ -252,7 +252,7 @@ End Class
252
252
""" , attribute ) ;
253
253
}
254
254
255
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) ;
255
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) ;
256
256
}
257
257
258
258
[ Test ]
@@ -271,7 +271,7 @@ End Class
271
271
""" , attribute ) ;
272
272
}
273
273
274
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) ;
274
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } ] , this . projectFile ) ;
275
275
}
276
276
277
277
[ Test ]
@@ -289,7 +289,7 @@ open System.Reflection
289
289
""" , attribute ) ;
290
290
}
291
291
292
- var ex = Assert . Throws < WarningException > ( ( ) => FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) , attribute ) ;
292
+ var ex = Assert . Throws < WarningException > ( ( ) => AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) , attribute ) ;
293
293
ex . ShouldNotBeNull ( ) ;
294
294
Assert . That ( ex . Message , Is . EqualTo ( "File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.fs" ) ) ;
295
295
}
@@ -310,7 +310,7 @@ open System.Reflection
310
310
""" , attribute ) ;
311
311
}
312
312
313
- var ex = Assert . Throws < WarningException > ( ( ) => FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) , attribute ) ;
313
+ var ex = Assert . Throws < WarningException > ( ( ) => AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) , attribute ) ;
314
314
ex . ShouldNotBeNull ( ) ;
315
315
Assert . That ( ex . Message , Is . EqualTo ( "File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.fs" ) ) ;
316
316
}
@@ -330,7 +330,7 @@ open System.Reflection
330
330
""" , attribute ) ;
331
331
}
332
332
333
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) ;
333
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) ;
334
334
}
335
335
336
336
[ Test ]
@@ -347,7 +347,7 @@ open System.Reflection
347
347
""" , attribute ) ;
348
348
}
349
349
350
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) ;
350
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) ;
351
351
}
352
352
353
353
[ Test ]
@@ -366,7 +366,7 @@ type Temp() =
366
366
""" , attribute ) ;
367
367
}
368
368
369
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) ;
369
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) ;
370
370
}
371
371
372
372
[ Test ]
@@ -384,6 +384,6 @@ open System.Reflection
384
384
""" , attribute ) ;
385
385
}
386
386
387
- FileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) ;
387
+ AssemblyInfoFileHelper . CheckForInvalidFiles ( [ new MockTaskItem { ItemSpec = "AssemblyInfo.fs" } ] , this . projectFile ) ;
388
388
}
389
389
}
0 commit comments