Fixed unit test TargetDeclination_Get_WhenValueOK_ThenSetsNewTargetDeclination

This commit is contained in:
2021-01-30 15:42:31 +00:00
parent 779d314748
commit 26b94de48c
@@ -1904,7 +1904,13 @@ namespace Meade.net.Telescope.UnitTests
[TestCase(50, "50*00:00", ":Sd+50*00:00#")]
public void TargetDeclination_Get_WhenValueOK_ThenSetsNewTargetDeclination(double declination, string decstring, string commandString)
{
var digitsRA = 2;
var telescopeDecResult = "s12*3456";
_utilMock.Setup(x => x.DegreesToDMS(declination, "*", ":", ":", digitsRA)).Returns(telescopeDecResult);
_utilMock.Setup(x => x.DegreesToDMS(declination, "*", ":", ":", 2)).Returns(decstring);
_utilMock.Setup(x => x.DMSToDegrees(decstring)).Returns(declination);
_sharedResourcesWrapperMock.Setup(x => x.SendChar(commandString)).Returns("1");
ConnectTelescope();