public async Task DisposeAsync() { //clear up all the channels try { await _msg.DeleteChannelAsync(_qn); } catch { } }
public async Task Channels_delete_goesaway() { string channelName = NewChannelName(); try { await _msg.CreateChannelAsync(channelName); } catch (NotSupportedException) { return; } await _msg.DeleteChannelAsync(channelName); IReadOnlyCollection <string> channels = await _msg.ListChannelsAsync(); Assert.DoesNotContain(channelName, channels); }