Ejemplo n.º 1
0
        public Task Should_throw_exception_if_tracking_on_disposed_object()
        {
            sut.Dispose();

            return(Assert.ThrowsAsync <ObjectDisposedException>(() => sut.TrackAsync("key1", 1, 1000)));
        }
        public async Task Should_throw_exception_if_tracking_on_disposed_object()
        {
            sut.Dispose();

            await Assert.ThrowsAsync <ObjectDisposedException>(() => sut.TrackAsync(date, key, "category1", new Counters()));
        }