From 26b94de48c2d5636e502ea3a10b2e67e3a090b41 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 30 Jan 2021 15:42:31 +0000 Subject: [PATCH] Fixed unit test TargetDeclination_Get_WhenValueOK_ThenSetsNewTargetDeclination --- Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs index dea85a9..9f55e39 100644 --- a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs +++ b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs @@ -1904,7 +1904,13 @@ namespace Meade.net.Telescope.UnitTests [TestCase(50, "50*00:00", ":Sd+50*00:00#")] public void TargetDeclination_Get_WhenValueOK_ThenSetsNewTargetDeclination(double declination, string decstring, string commandString) { + var digitsRA = 2; + var telescopeDecResult = "s12*34’56"; + + _utilMock.Setup(x => x.DegreesToDMS(declination, "*", ":", ":", digitsRA)).Returns(telescopeDecResult); _utilMock.Setup(x => x.DegreesToDMS(declination, "*", ":", ":", 2)).Returns(decstring); + _utilMock.Setup(x => x.DMSToDegrees(decstring)).Returns(declination); + _sharedResourcesWrapperMock.Setup(x => x.SendChar(commandString)).Returns("1"); ConnectTelescope();