public void Play_GivenSequencesText2SpeechWithDisabledVoiceEnhancement_ShouldSequencesText2Speech() { // arrange Setup(); _mockITextToSpeech.Setup(mc => mc.Play("Help")).Returns(Task.FromResult(true)); var sequences = new SequencesText2Speech() { Text = "Help" ,DisableTransform = true}; // action _sequencePlayerTests.Play(sequences); // assert }
public void Play_GivenSequencesText2Speech_ShouldSequencesText2Speech() { // arrange Setup(); _mockITextToSpeech.Setup(mc => mc.Play("Help", _mockIVoiceEnhancer.Object)).Returns(Task.FromResult(true)); var sequences = new SequencesText2Speech() { Text = "Help"}; // action _sequencePlayerTests.Play(sequences); // assert }