Removed the requirement for GW Support when trying to set the alignment mode.
This commit is contained in:
@@ -839,16 +839,16 @@ namespace Meade.net.Telescope.UnitTests
|
|||||||
_sharedResourcesWrapperMock.Verify(x => x.SendBlind(expectedCommand, false), Times.Once);
|
_sharedResourcesWrapperMock.Verify(x => x.SendBlind(expectedCommand, false), Times.Once);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestCase(TelescopeList.Autostar497, "43Ef")]
|
//[TestCase(TelescopeList.Autostar497, "43Ef")]
|
||||||
public void AlignmentMode_Set_WhenAutostarFirmwareToLow_ThenThrowsException(string productName, string firmware)
|
//public void AlignmentMode_Set_WhenAutostarFirmwareToLow_ThenThrowsException(string productName, string firmware)
|
||||||
{
|
//{
|
||||||
ConnectTelescope(productName, firmware);
|
// ConnectTelescope(productName, firmware);
|
||||||
|
|
||||||
var excpetion = Assert.Throws<PropertyNotImplementedException>(() => _telescope.AlignmentMode = AlignmentModes.algAltAz);
|
// var excpetion = Assert.Throws<PropertyNotImplementedException>(() => _telescope.AlignmentMode = AlignmentModes.algAltAz);
|
||||||
|
|
||||||
Assert.That(excpetion.Property, Is.EqualTo("AlignmentMode"));
|
// Assert.That(excpetion.Property, Is.EqualTo("AlignmentMode"));
|
||||||
Assert.That(excpetion.AccessorSet, Is.True);
|
// Assert.That(excpetion.AccessorSet, Is.True);
|
||||||
}
|
//}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void ApertureArea_Get_ReturnsExpectedResult()
|
public void ApertureArea_Get_ReturnsExpectedResult()
|
||||||
|
|||||||
@@ -1030,8 +1030,8 @@ namespace ASCOM.Meade.net
|
|||||||
CheckConnected("AlignmentMode Set");
|
CheckConnected("AlignmentMode Set");
|
||||||
|
|
||||||
//todo tidy this up into a better solution that means can :GW#, :AL#, :AA#, & :AP# and checked for Autostar properly
|
//todo tidy this up into a better solution that means can :GW#, :AL#, :AA#, & :AP# and checked for Autostar properly
|
||||||
if (!IsGwCommandSupported())
|
//if (!IsGwCommandSupported())
|
||||||
throw new PropertyNotImplementedException("AlignmentMode", true);
|
// throw new PropertyNotImplementedException("AlignmentMode", true);
|
||||||
|
|
||||||
switch (value)
|
switch (value)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user