private SlimClientFailedToRequestWithClosedChannel ( ChannelType type ) : System.Threading.Tasks.Task | ||
type | ChannelType | |
Résultat | System.Threading.Tasks.Task |
public async Task SlimClientFailedToRequestWithClosedChannel(ChannelType type)
{
// Arrange
var clientChannel = await CreatePrimaryClientChannelAsync(type, false);
var entry = clientChannel.CreateRef<EntryRef>();
// Act
var exception = await Record.ExceptionAsync(() => entry.Echo("Test"));
// Assert
Assert.IsType<RequestChannelException>(exception);
}