Ejemplo n.º 1
0
 public void then_driver_restart_timer_if_already_attending_variable()
 {
     driver.Start();
     driver.StartAttendingVariable(1);
     driver.Stop();
     driver.Start();
     timerStub.Started.ShouldBeTrue();
 }
Ejemplo n.º 2
0
        public void then_can_add_driver_variables()
        {
            int variableId = 17;
            var variable   = new IntegerVariable(variableId, "Name")
            {
                DriverConfiguration = new object()
            };

            driver.ValueStorage = new VariableStorageStub();
            driver.Timer        = new TimerStub();
            driver.Start();
            driver.Stop();
            driver.AddVariable(variable);
            variable.Driver.ShouldEqual(driver);
        }