Exemple #1
0
 public void Test()
 {
     CyclicRunner.Verify(r => r.Stop(), Times.Once());
     Reporter.Verify(
         r => r.Report(string.Format(Res.AlarmsStoppedMessage, AlarmCategory.Name),
                       null, null), Times.Once());
 }
Exemple #2
0
 public void Test()
 {
     CyclicRunner.Verify(r => r.Stop(), Times.Once());
     Reporter.Verify(
         r => r.Report(string.Format(Res.IoDeviceStoppedMessage, IoDevice.Name), null,
                       null), Times.Once());
 }
Exemple #3
0
 public void Test()
 {
     CyclicRunner.Verify(r => r.Start(), Times.Once());
 }
Exemple #4
0
 protected override void EstablishContext()
 {
     base.EstablishContext();
     CyclicRunnerException = new Exception("CyclicRunnerException");
     CyclicRunner.Setup(r => r.Start()).Throws(CyclicRunnerException);
 }