public async Task SlimClientFailedToConnectToSlimServer(ChannelType type) { // Act var exception = await Record.ExceptionAsync(() => CreatePrimaryClientChannelAsync(type)); // Assert Assert.NotNull(exception); }