public async Task GetBytesFromDataAvailble() { TestAgentAudioInputProvider testAgent = await TestAgentAudioInputProvider.InitializeFromNowAsync(); testAgent.DebugAudioCaptureFilesEnabled = true; await testAgent.StartWithInitialSkipAsync(TimeSpan.Zero); Assert.IsNotNull(testAgent.DebugAudioOutputFileStream); Assert.IsTrue(testAgent.DebugAudioOutputFileStream.Length > 0); await testAgent.StopAsync(); }
public async Task GetStopAsyncFromSession() { TestAgentAudioInputProvider testAgent = await TestAgentAudioInputProvider.InitializeFromNowAsync(); await testAgent.StartWithInitialSkipAsync(TimeSpan.Zero); Assert.IsNull(testAgent.AgentSession); Assert.IsFalse(testAgent.Disposed); Assert.IsNotNull(testAgent.OutputNode); Assert.IsNotNull(testAgent.OutputEncoding); Assert.IsTrue(testAgent.GraphRunning); Assert.IsNotNull(testAgent.InputGraph); await testAgent.StopAsync(); Assert.IsFalse(testAgent.GraphRunning); }