Added extra check to ensure that slewing is return true whilst executing one of the ascom slew commands.
This commit is contained in:
@@ -2950,7 +2950,7 @@ namespace Meade.net.Telescope.UnitTests
|
||||
|
||||
Assert.That(result, Is.False);
|
||||
|
||||
_sharedResourcesWrapperMock.Verify(x => x.SendString(_traceLoggerMock.Object, "D", false), Times.Exactly(2));
|
||||
_sharedResourcesWrapperMock.Verify(x => x.SendString(_traceLoggerMock.Object, "D", false), Times.Exactly(1));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -3317,8 +3317,6 @@ namespace Meade.net.Telescope.UnitTests
|
||||
_telescope.TargetDeclination = 1;
|
||||
|
||||
_telescope.SlewToTarget();
|
||||
|
||||
_utilMock.Verify(x => x.WaitForMilliseconds(It.IsAny<int>()), Times.Exactly(iterations - preTestItterations));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -3402,8 +3400,6 @@ namespace Meade.net.Telescope.UnitTests
|
||||
Assert.That(_telescope.TargetRightAscension, Is.EqualTo(_testProperties.RightAscension));
|
||||
Assert.That(_telescope.TargetDeclination, Is.EqualTo(dmsResult));
|
||||
_sharedResourcesWrapperMock.Verify(x => x.SendChar(_traceLoggerMock.Object, "MS", false), Times.Once);
|
||||
|
||||
_utilMock.Verify(x => x.WaitForMilliseconds(It.IsAny<int>()), Times.Exactly(iterations - preTestItterations));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -3526,7 +3522,6 @@ namespace Meade.net.Telescope.UnitTests
|
||||
Assert.That(_telescope.TargetRightAscension, Is.EqualTo(_testProperties.RightAscension));
|
||||
Assert.That(_telescope.TargetDeclination, Is.EqualTo(_testProperties.Declination));
|
||||
_sharedResourcesWrapperMock.Verify(x => x.SendChar(_traceLoggerMock.Object, "MS", false), Times.Once);
|
||||
_utilMock.Verify(x => x.WaitForMilliseconds(It.IsAny<int>()), Times.Exactly(iterations - preTestItterations));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -3615,10 +3610,9 @@ namespace Meade.net.Telescope.UnitTests
|
||||
|
||||
_sharedResourcesWrapperMock.Verify(x => x.SendBlind(_traceLoggerMock.Object, "Q", false), Times.Once);
|
||||
|
||||
var isSloSlewing = _telescope.Slewing;
|
||||
var isSlewing = _telescope.Slewing;
|
||||
|
||||
Assert.That(isSloSlewing, Is.False);
|
||||
_sharedResourcesWrapperMock.Verify(x => x.SendString(_traceLoggerMock.Object, "D", false), Times.Exactly(2));
|
||||
Assert.That(isSlewing, Is.False);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user