public async Task Render_Callbacks() { _sw = Stopwatch.StartNew(); _sut.Start(); await Task.Delay(50); _sut.Stop(); Assert.IsTrue(_callbacks.Any()); }
public void Render_Uninitialized_Stop_Throws() { var result = Assert.ThrowsException <COMException>( () => { _sut.Stop(); }); Assert.AreEqual(WasapiErrors.AUDCLNT_E_NOT_INITIALIZED, result.HResult); }
public void Render_State_Stopped_After_Stop() { _sut.Start(); _sut.Stop(); Assert.AreEqual(AudioSessionClientState.Stopped, _sut.State); }