From df81445687e1bb12eb3f2c4b89e179d8d5bf50f9 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 9 Sep 2022 13:59:17 -0500 Subject: [PATCH] Update BufferedReporter to match IReporter api change --- .../BufferedReporter.cs | 4 ++++ 1 file changed, 4 insertions(+) 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);