Fixed broken unit test

This commit is contained in:
2019-05-02 18:54:52 +01:00
parent 7df8da2f59
commit e8793231d1
2 changed files with 7 additions and 6 deletions
@@ -448,12 +448,13 @@ namespace MeadeAutostar497.UnitTests
serialMock.Verify(x => x.Command(":Mgs1024#"), Times.Once);
}
[TestCase("AT0", AlignmentModes.algAltAz)]
[TestCase("PT0", AlignmentModes.algPolar)]
[TestCase("GT0", AlignmentModes.algGermanPolar)]
public void AlignmentMode_Get_ReturnsExpectedValue(string commandResponse, AlignmentModes mode)
[TestCase('A', AlignmentModes.algAltAz)]
[TestCase('P', AlignmentModes.algPolar)]
public void AlignmentMode_Get_ReturnsExpectedValue(char 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;