Added check to ensure that the Lunar Tracking rate cannot be selected on the LX200 Classic.

This commit is contained in:
2021-08-04 18:48:24 +01:00
parent 27a0f54b07
commit 49c43358de
3 changed files with 22 additions and 6 deletions
@@ -2768,13 +2768,25 @@ namespace Meade.net.Telescope.UnitTests
Assert.That(result.Message, Is.EqualTo("TrackingRate Set is not implemented in this driver."));
}
[Test]
public void TrackingRates_Get_ReturnsExpectedType()
[TestCase(TelescopeList.Autostar497, TelescopeList.Autostar497_43Eg, true )]
[TestCase(TelescopeList.LX200CLASSIC, "", false)]
public void TrackingRates_Get_ReturnsExpectedType(string productName, string firmwareVersion, bool supportsLunar)
{
ConnectTelescope(productName, firmwareVersion);
var result = _telescope.TrackingRates;
Assert.That(result, Is.Not.Null);
Assert.That(result, Is.AssignableTo<TrackingRates>());
if (supportsLunar)
{
Assert.That(result.Count, Is.EqualTo(2));
}
else
{
Assert.That(result.Count, Is.EqualTo(1));
}
}
[Test]