File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
src/Microsoft.TestPlatform.Build/Tasks
test/Microsoft.TestPlatform.Build.UnitTests Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -247,11 +247,11 @@ private List<string> AddArgs()
247
247
var quietTestLogging = new List < string > ( ) { "q" , "quiet" } ;
248
248
249
249
string vsTestVerbosity = "minimal" ;
250
- if ( normalTestLogging . Contains ( this . VSTestVerbosity ) )
250
+ if ( normalTestLogging . Contains ( this . VSTestVerbosity . ToLowerInvariant ( ) ) )
251
251
{
252
252
vsTestVerbosity = "normal" ;
253
253
}
254
- else if ( quietTestLogging . Contains ( this . VSTestVerbosity ) )
254
+ else if ( quietTestLogging . Contains ( this . VSTestVerbosity . ToLowerInvariant ( ) ) )
255
255
{
256
256
vsTestVerbosity = "quiet" ;
257
257
}
Original file line number Diff line number Diff line change @@ -188,6 +188,26 @@ public void CreateArgumentShouldSetConsoleLoggerVerbosityToMinimalIfConsoleLogge
188
188
Assert . IsNotNull ( allArguments . FirstOrDefault ( arg => arg . Contains ( "--logger:Console;Verbosity=minimal" ) ) ) ;
189
189
}
190
190
191
+ [ TestMethod ]
192
+ public void CreateArgumentShouldSetConsoleLoggerVerbosityToNormalIfConsoleLoggerIsNotGivenInArgsAndVerbosityIsNormalWithCapitalN ( )
193
+ {
194
+ this . vsTestTask . VSTestVerbosity = "Normal" ;
195
+
196
+ var allArguments = this . vsTestTask . CreateArgument ( ) . ToArray ( ) ;
197
+
198
+ Assert . IsNotNull ( allArguments . FirstOrDefault ( arg => arg . Contains ( "--logger:Console;Verbosity=normal" ) ) ) ;
199
+ }
200
+
201
+ [ TestMethod ]
202
+ public void CreateArgumentShouldSetConsoleLoggerVerbosityToQuietIfConsoleLoggerIsNotGivenInArgsAndVerbosityIsQuietWithCapitalQ ( )
203
+ {
204
+ this . vsTestTask . VSTestVerbosity = "Quiet" ;
205
+
206
+ var allArguments = this . vsTestTask . CreateArgument ( ) . ToArray ( ) ;
207
+
208
+ Assert . IsNotNull ( allArguments . FirstOrDefault ( arg => arg . Contains ( "--logger:Console;Verbosity=quiet" ) ) ) ;
209
+ }
210
+
191
211
[ TestMethod ]
192
212
public void CreateArgumentShouldPreserveWhiteSpaceInLogger ( )
193
213
{
You can’t perform that action at this time.
0 commit comments