public void TestStart() { track.StartAsync(); track.Update(); Thread.Sleep(50); track.Update(); Assert.IsTrue(track.IsRunning); Assert.Greater(track.CurrentTime, 0); }
public void TestTrackPlaybackBlocksAtTrackEnd() { #pragma warning disable 4014 track.SeekAsync(track.Length - 1); #pragma warning restore 4014 track.StartAsync(); track.Update(); Thread.Sleep(50); track.Update(); Assert.IsFalse(track.IsRunning); Assert.AreEqual(track.Length, track.CurrentTime); track.StartAsync(); track.Update(); Assert.AreEqual(track.Length, track.CurrentTime); }