Update BufferedReporter to match IReporter api change

This commit is contained in:
Larry Ewing 2022-09-09 13:59:17 -05:00
parent 6a6672a6fc
commit df81445687

View file

@ -1,3 +1,5 @@
#nullable enable
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.DotNet.Cli.Utils; using Microsoft.DotNet.Cli.Utils;
@ -8,6 +10,8 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
{ {
public List<string> Lines { get; private set; } = new List<string>(); public List<string> Lines { get; private set; } = new List<string>();
public void WriteLine(string format, params object?[] args) => WriteLine(string.Format(format, args));
public void WriteLine(string message) public void WriteLine(string message)
{ {
Lines.Add(message); Lines.Add(message);