コード例 #1
0
        public async Task WriteTerminateMessage_Default_IsMatch()
        {
            // arrange
            await using var writer = new SocketMessageWriter();

            // act
            writer.WriteTerminateMessage();

            // assert
            Encoding.UTF8.GetString(writer.Body.Span).MatchSnapshot();
        }