Exemple #1
0
        public void TestStart()
        {
            track.Start();
            updateTrack();

            Thread.Sleep(50);

            updateTrack();

            Assert.IsTrue(track.IsRunning);
            Assert.Greater(track.CurrentTime, 0);
        }
Exemple #2
0
        public void TestStartZeroLength()
        {
            // override default with custom length
            track = new TrackVirtual(0);

            track.Start();
            updateTrack();

            Thread.Sleep(50);

            Assert.IsTrue(!track.IsRunning);
            Assert.AreEqual(0, track.CurrentTime);
        }