public SpeechControllerState(SpeechControllerState copyFrom) { session = copyFrom.session; errorCode = copyFrom.errorCode; recognizedSpeech = copyFrom.recognizedSpeech; sequenceNumber = copyFrom.sequenceNumber; }
public SpeechControllerState() { session = SCSession.Inactive; errorCode = SCErrorCode.no_error; recognizedSpeech = ""; sequenceNumber = -2; }
public void CopyFrom(SpeechControllerState other) { session = other.session; errorCode = other.errorCode; recognizedSpeech = other.recognizedSpeech; sequenceNumber = other.sequenceNumber; }
public void RequestRegisterClose() { // arrange var session = new SCSession("scdemo://shortcut.sc/demo/73734?sc_link_id=2cjog8"); var client = new SCServerRequestRegisterClose(session); // act var response = client.DoRequest(); // assert Assert.IsNotNull(response); Assert.AreNotEqual(response, String.Empty); StringAssert.Contains(response, ":"); }
public void RequestRegisterFirstOpen() { // arrange var session = new SCSession(); var client = new SCServerRequestRegisterFirstOpen(session); // act var response = client.DoRequest(); // assert Assert.IsNotNull(response); Assert.AreNotEqual(response, String.Empty); StringAssert.Contains(response, ":"); }