osu.Framework.Tests/Clocks/DecoupleableClockTest.cs
/// <summary>
/// Tests that the decoupled clock seeks the source clock to its time when it starts.
/// </summary>
Tests that the decoupled clock seeks the source clock to its time when it starts.
Tests that the decoupled clock seeks the source clock to its time when it starts .
[Test]
        public void TestDecoupledStartWithSouceOffset()
        {
            decoupleable.IsCoupled = false;
            source.Seek(1000);
            decoupleable.Start();
            Assert.AreEqual(0, source.CurrentTime);
            Assert.AreEqual(source.CurrentTime, decoupleable.CurrentTime, "Deoupled time should match source time.");
        }
[ Test ] public void TestDecoupledStartWithSouceOffset ( ) { decoupleable . IsCoupled = false ; source . Seek ( 1000 ) ; decoupleable . Start ( ) ; Assert . AreEqual ( 0 , source . CurrentTime ) ; Assert . AreEqual ( source . CurrentTime , decoupleable . CurrentTime , " " ) ; }
Tests that the decoupled clock seeks the source clock to its time when it starts.
Tests that the decoupled clock seeks the source clock to its time when it starts .