diff --git a/test/Microsoft.DotNet.Tools.Tests.Utilities/BufferedReporter.cs b/test/Microsoft.DotNet.Tools.Tests.Utilities/BufferedReporter.cs index d4c865b08..e657e324c 100644 --- a/test/Microsoft.DotNet.Tools.Tests.Utilities/BufferedReporter.cs +++ b/test/Microsoft.DotNet.Tools.Tests.Utilities/BufferedReporter.cs @@ -1,3 +1,5 @@ +#nullable enable + using System; using System.Collections.Generic; using Microsoft.DotNet.Cli.Utils; @@ -8,6 +10,8 @@ namespace Microsoft.DotNet.Tools.Test.Utilities { public List Lines { get; private set; } = new List(); + public void WriteLine(string format, params object?[] args) => WriteLine(string.Format(format, args)); + public void WriteLine(string message) { Lines.Add(message);