public void WaitAsync_AfterReset_IsNotCompleted()
        {
            AsyncContext.Run(async () =>
            {
                var mre = new AsyncManualResetEvent();

                mre.Set();
                mre.Reset();
                var task = mre.WaitAsync();

                await AssertEx.NeverCompletesAsync(task);
            });
        }
        public void Wait_AfterReset_IsNotCompleted()
        {
            Test.Async(async () =>
            {
                var mre = new AsyncManualResetEvent();

                mre.Set();
                mre.Reset();
                var task = TaskShim.Run(() => mre.Wait());

                await AssertEx.NeverCompletesAsync(task);
            });
        }