Пример #1
0
        public void Stop()
        {
            var m       = new RecurringHelper(100);
            var success = m.Stop();

            Assert.IsTrue(success);
        }
Пример #2
0
 public void ChangeTimingWithoutStart()
 {
     using (var tm = new RecurringHelper(100))
     {
         tm.ChangeTiming(TimeSpan.FromSeconds(100));
     }
 }
Пример #3
0
        public void TestDisposeTimer()
        {
            var m = new RecurringHelper(100);

            m.Start();
            m.TestDispose();
        }
Пример #4
0
 public void ChangeTimingZero()
 {
     using (var tm = new RecurringHelper(100))
     {
         Assert.That(() => tm.ChangeTiming(TimeSpan.Zero), Throws.TypeOf <ArgumentException>());
     }
 }
Пример #5
0
        public void RunThrows()
        {
            var m = new RecurringHelper(100)
            {
                Throw = true,
            };

            m.Run(new object());
        }
        public void RunThrows()
        {
            var m = new RecurringHelper(100)
            {
                Throw = true,
            };

            m.Run(new object(), null);
        }
 public void RunStateNull()
 {
     var m = new RecurringHelper(100);
     m.Run(null, null);
 }
 public void Run()
 {
     var m = new RecurringHelper(100);
     m.Run();
 }
 public void TestDisposeTimer()
 {
     var m = new RecurringHelper(100);
     m.Start();
     m.TestDispose();
 }
Пример #10
0
 public void Dispose()
 {
     using (var m = new RecurringHelper(100))
     {
     }
 }
Пример #11
0
 public void ConstructorPeriodNegative()
 {
     var rh = new RecurringHelper(-50);
 }
Пример #12
0
 public void ChangeTiming()
 {
     using (var tm = new RecurringHelper(100))
     {
         tm.Start();
         tm.Change(TimeSpan.FromSeconds(100));
     }
 }
Пример #13
0
        public void RunStateNull()
        {
            var m = new RecurringHelper(100);

            m.Run(null);
        }
Пример #14
0
        public void Run()
        {
            var m = new RecurringHelper(100);

            m.Run();
        }
Пример #15
0
 public void Dispose()
 {
     using (var m = new RecurringHelper(100))
     {
     }
 }
Пример #16
0
 public void StartStop()
 {
     var m = new RecurringHelper(100);
     var success = m.Start();
     Assert.IsTrue(success);
     success = m.Stop();
     Assert.IsTrue(success);
 }
Пример #17
0
 public void ChangeTimingZero()
 {
     using (var tm = new RecurringHelper(100))
     {
         tm.Change(TimeSpan.Zero);
     }
 }