public void Uninitialized_EnginePeriods() { var format = _sut.GetDefaultFormat(); var periods = _sut.GetPeriods(format); Assert.AreNotEqual(0u, periods.DefaultPeriodFrames); Assert.AreNotEqual(0u, periods.FundamentalPeriodFrames); Assert.AreNotEqual(0u, periods.MinimumPeriodFrames); Assert.AreNotEqual(0u, periods.MaximumPeriodFrames); Assert.IsTrue(periods.MinimumPeriodFrames <= periods.MaximumPeriodFrames); Assert.IsTrue(periods.MinimumPeriodFrames <= periods.DefaultPeriodFrames && periods.DefaultPeriodFrames <= periods.MaximumPeriodFrames); Assert.AreEqual(0u, periods.DefaultPeriodFrames % periods.FundamentalPeriodFrames); }
public async Task SetupClient() { _callbacks = new List <TimeSpan>(); _sut = await AudioSessionClient.CreateRenderClientAsync(); var period = _sut.GetPeriods(_sut.GetDefaultFormat()).DefaultPeriodFrames; _sut.Initialize(this); }
public void Render_GetDefaultFormat_TypeIsAudio() { var format = _sut.GetDefaultFormat(); Assert.AreEqual("Audio", format.Type); }