Made sure that the alignment mode is preserved when parked, across sessions.

This commit is contained in:
2022-05-08 15:15:30 +01:00
parent 2b5205d9c5
commit ebca231d9a
3 changed files with 18 additions and 23 deletions
@@ -131,6 +131,7 @@ namespace Meade.net.Telescope.UnitTests
_testProperties.AlignmentStatus = alignmentStatus.ToCharArray();
_sharedResourcesWrapperMock.Setup(x => x.SendChars("GW", false, 3)).Returns(() => new string(_testProperties.AlignmentStatus));
_sharedResourcesWrapperMock.Setup(x => x.SendString("GW", false)).Returns(() => new string(_testProperties.AlignmentStatus));
_sharedResourcesWrapperMock.Setup(x => x.SendBlind("AP", false)).Callback(() => _testProperties.AlignmentStatus[1] = 'T');
_sharedResourcesWrapperMock.Setup(x => x.SendBlind("AL", false)).Callback(() => _testProperties.AlignmentStatus[1] = 'N');
@@ -808,9 +809,10 @@ namespace Meade.net.Telescope.UnitTests
[Test]
public void AlignmentMode_Get_WhenUnknownAlignmentMode_ThrowsException()
{
_testProperties.AlignmentMode = "";
ConnectTelescope();
_testProperties.AlignmentMode = "";
Assert.Throws<InvalidValueException>(() =>
{
var actualResult = _telescope.AlignmentMode;