Fixed broken unit test
This commit is contained in:
@@ -448,12 +448,13 @@ namespace MeadeAutostar497.UnitTests
|
|||||||
serialMock.Verify(x => x.Command(":Mgs1024#"), Times.Once);
|
serialMock.Verify(x => x.Command(":Mgs1024#"), Times.Once);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestCase("AT0", AlignmentModes.algAltAz)]
|
[TestCase('A', AlignmentModes.algAltAz)]
|
||||||
[TestCase("PT0", AlignmentModes.algPolar)]
|
[TestCase('P', AlignmentModes.algPolar)]
|
||||||
[TestCase("GT0", AlignmentModes.algGermanPolar)]
|
public void AlignmentMode_Get_ReturnsExpectedValue(char commandResponse, AlignmentModes mode)
|
||||||
public void AlignmentMode_Get_ReturnsExpectedValue(string commandResponse, AlignmentModes mode)
|
|
||||||
{
|
{
|
||||||
serialMock.Setup(x => x.CommandTerminated(":GW#", "#")).Returns(commandResponse);
|
const char ack = (char)6;
|
||||||
|
|
||||||
|
serialMock.Setup(x => x.CommandChar(ack.ToString())).Returns(commandResponse);
|
||||||
|
|
||||||
_isConnected = true;
|
_isConnected = true;
|
||||||
|
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ namespace ASCOM.MeadeAutostar497.Controller
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
char ack = (char)6;
|
const char ack = (char)6;
|
||||||
//var alignmentString = SerialPort.CommandTerminated(":GW#", "#");
|
//var alignmentString = SerialPort.CommandTerminated(":GW#", "#");
|
||||||
var alignmentString = SerialPort.CommandChar(ack.ToString());
|
var alignmentString = SerialPort.CommandChar(ack.ToString());
|
||||||
//:GW# Get Scope Alignment Status
|
//:GW# Get Scope Alignment Status
|
||||||
|
|||||||
Reference in New Issue
Block a user