More unit tests added

This commit is contained in:
2019-07-14 17:12:56 +01:00
parent 69434454ca
commit 5f5d819f3b
2 changed files with 304 additions and 4 deletions
+6 -4
View File
@@ -822,7 +822,7 @@ namespace ASCOM.Meade.net
var result = _sharedResourcesWrapper.SendString(":GD#");
//:GD# Get Telescope Declination.
//Returns: sDD* MM# or sDD*MMSS#
//Returns: sDD*MM# or sDD*MMSS#
//Depending upon the current precision setting for the telescope.
double declination = _utilities.DMSToDegrees(result);
@@ -850,7 +850,7 @@ namespace ASCOM.Meade.net
public PierSide DestinationSideOfPier(double rightAscension, double declination)
{
LogMessage("DestinationSideOfPier Get", "Not implemented");
throw new ASCOM.PropertyNotImplementedException("DestinationSideOfPier", false);
throw new ASCOM.MethodNotImplementedException("DestinationSideOfPier");
}
public bool DoesRefraction
@@ -924,6 +924,7 @@ namespace ASCOM.Meade.net
{
get
{
//Todo implement this if I can make the new pulse guiding async
LogMessage("IsPulseGuiding Get", "pulse guiding is synchronous for this driver");
//throw new ASCOM.PropertyNotImplementedException("IsPulseGuiding", false);
return false;
@@ -1026,7 +1027,7 @@ namespace ASCOM.Meade.net
break;
default:
throw new ASCOM.MethodNotImplementedException("Can not move this axis.");
throw new ASCOM.InvalidValueException("Can not move this axis.");
}
}
@@ -1080,7 +1081,8 @@ namespace ASCOM.Meade.net
//Returns Nothing
//LX200 Not Supported
_utilities.WaitForMilliseconds(duration); //todo figure out if this is really needed
//todo implement IsPulseGuiding if WaitForMilliseconds is not needed
_utilities.WaitForMilliseconds(duration); //todo figure out if this is really needed
}
else
{