public void then_fail_if_ValueStorage_is_changed_while_started() { driver.ValueStorage = new VariableStorageStub(); driver.Timer = new TimerStub(); driver.Start(); driver.ValueStorage = new VariableStorageStub(); }
public void then_can_send_data_to_ValueStorage() { driver.StartAttendingVariable(10); driver.ValueToPostToVariableStorage = Tuple.Create(10, 3.1416); driver.Start(); timerStub.DoTick(); StructuralComparisons.StructuralComparer.Compare(variableStorage.Dequeue(), Tuple.Create(10, 3.1416)).ShouldEqual(0); }
public void then_can_start_driver() { driver.Start(); driver.Started.ShouldBeTrue(); }