- This also paves the way for better multi-session support - We should definitely rethink names for the transport API - For now, I kept the names similar as possible, so we can focus on the API shape Co-authored-by: Stephen Toub <stoub@microsoft.com>
13 lines
657 B
C#
13 lines
657 B
C#
namespace ModelContextProtocol.Tests.Utils;
|
|
|
|
public class DelegatingTestOutputHelper() : ITestOutputHelper
|
|
{
|
|
public ITestOutputHelper? CurrentTestOutputHelper { get; set; }
|
|
|
|
public string Output => CurrentTestOutputHelper?.Output ?? string.Empty;
|
|
|
|
public void Write(string message) => CurrentTestOutputHelper?.Write(message);
|
|
public void Write(string format, params object[] args) => CurrentTestOutputHelper?.Write(format, args);
|
|
public void WriteLine(string message) => CurrentTestOutputHelper?.WriteLine(message);
|
|
public void WriteLine(string format, params object[] args) => CurrentTestOutputHelper?.WriteLine(format, args);
|
|
}
|