示例#1
0
        public async Task DisposeAsync()
        {
            //clear up all the channels

            try
            {
                await _msg.DeleteChannelAsync(_qn);
            }
            catch { }
        }
示例#2
0
        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);
        }