Set() public method

public Set ( ) : void
return void
        public void subsequent_waits_are_automatially_blocked_until_set()
        {
            using (var e = new AutoResetEventSlim())
            {
                Assert.True(e.Wait(0));

                Assert.False(e.Wait(0));
                Assert.False(e.Wait(0));

                e.Set();
                Assert.True(e.Wait(0));
            }
        }