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

CloseChannel_ChannelClosed() private method

private CloseChannel_ChannelClosed ( ChannelType type ) : System.Threading.Tasks.Task
type ChannelType
return System.Threading.Tasks.Task
        public async Task CloseChannel_ChannelClosed(ChannelType type)
        {
            // Arrange
            var gateway = CreatePrimaryGateway(type);
            var clientChannel = await CreatePrimaryClientChannelAsync(type);
            var entry = clientChannel.CreateRef<EntryRef>();
            Assert.Equal("Test", await entry.Echo("Test"));
            var serverChannel = (await ActorSelection(gateway.CastToIActorRef().Path + "/*").ResolveOne(TimeSpan.FromSeconds(1))).Cast<ActorBoundChannelRef>();

            // Act
            await serverChannel.Close();

            // Assert
            Watch(serverChannel.CastToIActorRef());
            ExpectTerminated(serverChannel.CastToIActorRef());
        }