public void RealtimeLipsyncTest_Success() { //Arrange var tempVr = new EasyVr(_comPort); //Act var response = tempVr.RealtimeLipsync(2, 100); //Assert Assert.IsTrue(response); }
public void PlaySoundTest_Success() { //Arrange var tempVr = new EasyVr(_comPort); //Act var response = tempVr.PlaySound(1, 15); //Assert Assert.IsTrue(response); }
public void SetKnobTest_Success() { //Arrange var tempVr = new EasyVr(_comPort); //Act var response = tempVr.SetKnob(Knob.LOOSE); //Assert Assert.IsTrue(response); }
public void GetGrammarsCount_Success() { //Arrange var tempVr = new EasyVr(_comPort); //Act var response = tempVr.GetGrammarsCount(); //Assert Assert.IsTrue(response >= 0); }
public void PlayPhoneTone_Success() { //Arrange var tempVr = new EasyVr(_comPort); //Act var response = tempVr.PlayPhoneTone(1, 9); //Assert Assert.IsTrue(response); }
public void AddCommandTest_IndexOutOfRange_ThrowsException() { //Arrange var tempVr = new EasyVr(_comPort); //Act var response = tempVr.AddCommand(17, 45); //Assert Assert.IsTrue(response); }
public void SetDelayTest_Success() { //Arrange var tempVr = new EasyVr(_comPort); //Act var response = tempVr.SetDelay(20); //Assert Assert.IsTrue(response); }
public void SetCommandLatencyTest() { //Arrange var tempVr = new EasyVr(_comPort); //Act var response = tempVr.SetCommandLatency(CommandLatency.MODE_NORMAL); //Assert Assert.IsTrue(response); }
public void ResetAllTest_Success() { //Arrange var tempVr = new EasyVr(_comPort); //Act var response = tempVr.ResetAll(); //Assert Assert.IsTrue(response); }
public void DumpCommandTest() { var tempVr = new EasyVr(_comPort); string name = null; var training = 0; var response = tempVr.DumpCommand(1, 0, ref name, ref training); Assert.IsTrue(response); Assert.IsTrue(name == "TESTING123"); Assert.IsTrue(training == 2); }
private void ConnectButton_Click(object sender, RoutedEventArgs e) { try { _tempVr = new EasyVr(PortComboBox.SelectedItem.ToString()); Enabled = true; } catch (ArgumentNullException) { MessageBox.Show("Failure connecting to EasyVR"); } }
public void DumpSoundTableTest_Success() { var tempVr = new EasyVr(_comPort); tempVr.ResetAll(); string name; int count; var response = tempVr.DumpSoundTable(out name, out count); Assert.IsTrue(response); Assert.IsTrue(name == "SND_BEEP"); Assert.IsTrue(count == 1); }
public void DumpGrammarTest_Success() { //Arrange var tempVr = new EasyVr(_comPort); //Act byte flags; int count; var response = tempVr.DumpGrammar(0, out flags, out count); //Assert Assert.IsTrue(flags > 0); Assert.IsTrue(count > 0); Assert.IsTrue(response); }
public void RemoveCommandTest_Success() { //Arrange var tempVr = new EasyVr(_comPort); tempVr.ResetAll(); tempVr.AddCommand(1, 0); //Act var response = tempVr.RemoveCommand(1, 0); //Assert Assert.IsTrue(response); }
public void DumpMessageTest_NoMessageAvailable_Success() { //Arrange var tempVr = new EasyVr(_comPort); tempVr.ResetAll(); //Act int type; int length; var response = tempVr.DumpMessage(0, out type, out length); //Assert Assert.IsTrue(type == 0); Assert.IsTrue(length == 0); Assert.IsTrue(response); }
public void GetNextWordLabelTest_Success() { //Arrange var tempVr = new EasyVr(_comPort); byte flags; int count; var response = tempVr.DumpGrammar(0, out flags, out count); Assert.IsTrue(response); //Act string name; response = tempVr.GetNextWordLabel(out name); //Assert Assert.IsTrue(response); Assert.IsTrue(name == "ROBOT"); }
public void SetCommandLabelTest_Success() { var tempVr = new EasyVr(_comPort); tempVr.ResetAll(); var response = tempVr.AddCommand(0, 0); Assert.IsTrue(response); response = tempVr.SetCommandLabel(0, 0, "testCom1"); Assert.IsTrue(response); string name = null; var training = 0; response = tempVr.DumpCommand(0, 0, ref name, ref training); Assert.IsTrue(response); Assert.IsTrue(name == "TESTCOM1"); Assert.IsTrue(training == 0); }
public void PlaySoundAsyncTest_Success() { var tempVr = new EasyVr(_comPort); tempVr.PlaySoundAsync(1, 15); }
public void PlayMessageAsyncTest_Success() { var tempVr = new EasyVr(_comPort); tempVr.PlayMessageAsync(1, MessageSpeed.SPEED_NORMAL, MessageAttenuation.ATTEN_NONE); }