diff --git a/test/JSSoft.Communication.Tests/CallbackTest.cs b/test/JSSoft.Communication.Tests/CallbackTest.cs index eeb9e66..02670a5 100644 --- a/test/JSSoft.Communication.Tests/CallbackTest.cs +++ b/test/JSSoft.Communication.Tests/CallbackTest.cs @@ -94,20 +94,20 @@ public void Callback3_Test() public async Task InitializeAsync() { - _logger.WriteLine($"InitializeAsync 1"); _serverToken = await _serverContext.OpenAsync(CancellationToken.None); + _logger.WriteLine($"Server is opened: {_serverToken}"); _clientToken = await _clientContext.OpenAsync(CancellationToken.None); + _logger.WriteLine($"Client is opened: {_clientToken}"); _server = _testServer; - _logger.WriteLine($"InitializeAsync 2"); } public async Task DisposeAsync() { - _logger.WriteLine($"DisposeAsync 1"); await _serverContext.ReleaseAsync(_serverToken); + _logger.WriteLine($"Server is released: {_serverToken}"); await _clientContext.ReleaseAsync(_clientToken); + _logger.WriteLine($"Client is released: {_clientToken}"); _endPoint.Dispose(); - _logger.WriteLine($"DisposeAsync 2"); } public class ValueEventArgs(object? value) : EventArgs diff --git a/test/JSSoft.Communication.Tests/TestLogger.cs b/test/JSSoft.Communication.Tests/TestLogger.cs deleted file mode 100644 index ff2e341..0000000 --- a/test/JSSoft.Communication.Tests/TestLogger.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// Copyright (c) 2024 Jeesu Choi. All Rights Reserved. -// Licensed under the MIT License. See LICENSE.md in the project root for license information. -// - -using JSSoft.Communication.Logging; -using Xunit.Abstractions; - -namespace JSSoft.Communication.Tests; - -public sealed class TestLogger(ITestOutputHelper logger) : ILogger -{ - private readonly ITestOutputHelper _logger = logger; - - public void Debug(object message) => _logger.WriteLine($"{message}\n"); - - public void Info(object message) => _logger.WriteLine($"{message}\n"); - - public void Error(object message) => _logger.WriteLine($"{message}\n"); - - public void Warn(object message) => _logger.WriteLine($"{message}\n"); - - public void Fatal(object message) => _logger.WriteLine($"{message}\n"); -}