Akka.Interfaced.SlimSocket.ChannelTest.SlimClientGetExceptionOfPendingRequestAfterChannelClosed C# (CSharp) Method

SlimClientGetExceptionOfPendingRequestAfterChannelClosed() private method

private SlimClientGetExceptionOfPendingRequestAfterChannelClosed ( ChannelType type ) : System.Threading.Tasks.Task
type ChannelType
return System.Threading.Tasks.Task
        public async Task SlimClientGetExceptionOfPendingRequestAfterChannelClosed(ChannelType type)
        {
            // Arrange
            var gateway = CreatePrimaryGateway(type);
            var clientChannel = await CreatePrimaryClientChannelAsync(type);
            var entry = clientChannel.CreateRef<EntryRef>();

            // Act
            var exception = await Record.ExceptionAsync(() => entry.Echo("Close"));

            // Assert
            Assert.IsType<RequestChannelException>(exception);
        }