Пример #1
0
        public async Task DisposingOwnedAsynchronously_CallsDisposeOnLifetimeTokenIfAsyncDisposableNotDeclared()
        {
            var lifetime = new DisposeTracker();
            var owned    = new Owned <string>("unused", lifetime);
            await owned.DisposeAsync();

            Assert.True(lifetime.IsDisposed);
        }