Exemple #1
0
        public void Properties_Disposed()
        {
            var src = new WakeableTimer();

            src.Start();
            Task.Delay(100).Wait();
            Assert.That(src.State, Is.EqualTo(TimerState.Run));
            src.Dispose();
            Assert.That(src.State, Is.EqualTo(TimerState.Stop));
        }