public void StartStopSlew_Plus_SetsSlewRate() { var fakeTelescope = new FakeTelescope(); fakeTelescope.SiderealTime = TimeSpan.FromHours(3).TotalHours; var controller = new RAAxisController(fakeTelescope); controller.Connect(); controller.StartSlew(Orientation.Plus); Assert.AreEqual(8, controller.SlewRate); controller.StopSlew(); Assert.AreEqual(1, controller.SlewRate); }
public void StopSlew_ThrowsIfNotStarted() { var fakeTelescope = new FakeTelescope(); fakeTelescope.SiderealTime = TimeSpan.FromHours(3).TotalHours; var controller = new RAAxisController(fakeTelescope); controller.StopSlew(); }
public void StartStopSlew_Minus_SetsSlewing() { var fakeTelescope = new FakeTelescope(); fakeTelescope.SiderealTime = TimeSpan.FromHours(3).TotalHours; var controller = new RAAxisController(fakeTelescope); controller.Connect(); controller.StartSlew(Orientation.Minus); Assert.IsTrue(controller.Slewing); controller.StopSlew(); Assert.IsFalse(controller.Slewing); }