示例#1
0
 public void then_fails_if_stop_attending_not_attended_variable()
 {
     driver.AddVariable(new IntegerVariable(1, "Var1"));
     driver.AddVariable(new IntegerVariable(2, "Var2"));
     driver.StartAttendingVariable(1);
     driver.StopAttendingVariable(2);
 }
示例#2
0
 public void Setup()
 {
     driver              = new TestingDriver();
     timerStub           = new TimerStub();
     variableStorage     = new VariableStorageStub();
     driver.Timer        = timerStub;
     driver.ValueStorage = variableStorage;
     driver.AddVariable(new IntegerVariable(10, "Var10"));
     driver.AddVariable(new IntegerVariable(8, "Var8"));
 }
示例#3
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);
        }
示例#4
0
 public void Setup()
 {
     timerStub = new TimerStub();
     driver    = new TestingDriver
     {
         Timer        = timerStub,
         ValueStorage = new VariableStorageStub()
     };
     driver.AddVariable(new IntegerVariable(1, "Var1"));
 }