From a68e86d8cd327287d835b46568d2043d3208f177 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Thu, 5 May 2022 20:56:18 +0100 Subject: [PATCH] Added unit tests for long duration pulse guides. --- .../TelescopeUnitTests.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs index 86918d3..f6fe1d2 100644 --- a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs +++ b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs @@ -1663,13 +1663,16 @@ namespace Meade.net.Telescope.UnitTests Assert.That(exception.Message, Is.EqualTo("Not connected to telescope when trying to execute: PulseGuide")); } - [TestCase(GuideDirections.guideEast)] - [TestCase(GuideDirections.guideWest)] - [TestCase(GuideDirections.guideNorth)] - [TestCase(GuideDirections.guideSouth)] - public void PulseGuide_WhenConnectedAndNewerPulseGuidingAvailable_ThenSendsNewCommandsAndWaits(GuideDirections direction) + [TestCase(GuideDirections.guideEast, 0)] + [TestCase(GuideDirections.guideWest, 0)] + [TestCase(GuideDirections.guideNorth, 0)] + [TestCase(GuideDirections.guideSouth, 0)] + [TestCase(GuideDirections.guideEast, 22161)] + [TestCase(GuideDirections.guideWest, 22161)] + [TestCase(GuideDirections.guideNorth, 22161)] + [TestCase(GuideDirections.guideSouth, 22161)] + public void PulseGuide_WhenConnectedAndNewerPulseGuidingAvailable_ThenSendsNewCommandsAndWaits(GuideDirections direction, int duration) { - var duration = 0; ConnectTelescope(); _telescope.PulseGuide(direction, duration);