public void GomEpsSetSingleOutput_not_an_index_Test() { GomEPS gom = new GomEPS(); gom.GomEpsInitialize(add, 1); byte channelId = 5; byte val = 1; Assert.AreEqual(Constants.E_INDEX_ERROR, gom.GomEpsSetSingleOutput(1, channelId, val, 1)); }
public void GomEpsSetSingleOutput_no_error_Test() { GomEPS gom = new GomEPS(); gom.GomEpsInitialize(add, 1); byte channelId = 5; byte val = 1; Assert.AreEqual(Constants.E_NO_SS_ERR, gom.GomEpsSetSingleOutput(0, channelId, val, 1)); }
public void GomEpsSetSingleOutput_invalid_value_Test() { GomEPS gom = new GomEPS(); gom.GomEpsInitialize(add, 1); byte channelId = 5; byte val = 2; Assert.AreEqual(Constants.E_INVALID_INPUT, gom.GomEpsSetSingleOutput(0, channelId, val, 1)); }