From c848ebd9be5a90cb1e6dbdae263d9a17c5302368 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 30 Jan 2021 15:55:36 +0000 Subject: [PATCH] Fixed TargetRightAscension_Get_WhenValueOK_ThenSetsNewTargetDeclination --- Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs index 9f55e39..f3280dc 100644 --- a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs +++ b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs @@ -1988,7 +1988,12 @@ namespace Meade.net.Telescope.UnitTests [TestCase(15, "15:00:00", ":Sr15:00:00#")] public void TargetRightAscension_Get_WhenValueOK_ThenSetsNewTargetDeclination(double rightAscension, string hms, string commandString) { - _utilMock.Setup(x => x.HoursToHMS(rightAscension, ":", ":", ":", 2)).Returns(hms); + var digitsRA = 2; + var telescopeRaResult = "HH:MM:SS"; + + _utilMock.Setup(x => x.HoursToHMS(rightAscension, ":", ":", ":", digitsRA)).Returns(hms); + _utilMock.Setup(x => x.HMSToHours(hms)).Returns(rightAscension); + _sharedResourcesWrapperMock.Setup(x => x.SendChar(commandString)).Returns("1"); ConnectTelescope();