Skip to content

Commit 26a13b5

Browse files
authored
Use OutputHelper instead of Console (#69)
1 parent e84bf5a commit 26a13b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Microsoft.DotNet.ScenarioTests.SdkTemplateTests/DotNetSdkHelper.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,20 +298,20 @@ void processConfigCallback(Process process)
298298
}
299299
else if(output != originalSource)
300300
{
301-
Console.WriteLine("output is " + output);
302-
Console.WriteLine("originalSource is " + originalSource);
301+
OutputHelper.WriteLine("output is " + output);
302+
OutputHelper.WriteLine("originalSource is " + originalSource);
303303
throw new Exception($"{workloadIds} shouldn't be installed but was found.");
304304
}
305305
}
306-
Console.WriteLine($"{workloadIds} is installed");
306+
OutputHelper.WriteLine($"{workloadIds} is installed");
307307
}
308308
else
309309
{
310310
if (shouldBeInstalled)
311311
{
312312
throw new Exception($"{workloadIds} should be installed but wasn't found.");
313313
}
314-
Console.WriteLine($"{workloadIds} is not installed");
314+
OutputHelper.WriteLine($"{workloadIds} is not installed");
315315
}
316316
});
317317
}
@@ -370,8 +370,8 @@ public void ExecuteAddMultiTFM(string projectName, string projectDirectory, DotN
370370
}
371371
catch (XPathException e)
372372
{
373-
Console.WriteLine("Unable to find node");
374-
Console.WriteLine(e.Message);
373+
OutputHelper.WriteLine("Unable to find node");
374+
OutputHelper.WriteLine(e.Message);
375375
throw;
376376
}
377377
}
@@ -390,7 +390,7 @@ internal void CopyHelper(string projectDirectory, string existing, bool recursiv
390390
{
391391
string targetPath = Path.Combine(projectDirectory, file.Name);
392392
file.CopyTo(targetPath);
393-
Console.WriteLine($"Copying {file.Name} to {targetPath}");
393+
OutputHelper.WriteLine($"Copying {file.Name} to {targetPath}");
394394
}
395395
if (recursive)
396396
{

0 commit comments

Comments
 (0)