From 0b75b8d2cd46950955ea0044456cadab069622a2 Mon Sep 17 00:00:00 2001 From: Sebastian Godelet Date: Sun, 13 Jun 2021 09:49:09 +1000 Subject: [PATCH] Remove now unneeded Setup for DestinationSideOfPier DestinationSideOfPier will not call Slewing anymore, since it reads the property from SharedResourcesWrapper directly. --- Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs index 4467bf8..fd414ae 100644 --- a/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs +++ b/Meade.net.Telescope.UnitTests/TelescopeUnitTests.cs @@ -3085,9 +3085,6 @@ namespace Meade.net.Telescope.UnitTests [Test] public void SlewToTarget_WhenSlewing_ThenWaitsForTheSlewToComplete() { - // avoid calling SideOfPier because it will call Slewing - _astroUtilsMock.Setup(x => x.ConditionHA(It.IsAny())).Returns(+1); - _sharedResourcesWrapperMock.Setup(x => x.SendChar("MS", false)).Returns("0"); var slewCounter = 0; @@ -3169,9 +3166,6 @@ namespace Meade.net.Telescope.UnitTests [Test] public void SlewToCoordinates_WhenCalled_ThenSetsTargetAndSlews() { - // avoid calling SideOfPier because it will call Slewing - _astroUtilsMock.Setup(x => x.ConditionHA(It.IsAny())).Returns(+1); - _testProperties.rightAscension = 1; var declination = 2; @@ -3295,9 +3289,6 @@ namespace Meade.net.Telescope.UnitTests [Test] public void SlewToAltAz_WhenCalled_ThenSetsTargetAndSlews() { - // avoid calling SideOfPier because it will call Slewing - _astroUtilsMock.Setup(x => x.ConditionHA(It.IsAny())).Returns(+1); - _testProperties.rightAscension = 10.0; _testProperties.declination = 20; var azimuth = 30;