public void GetFirstSecondAndDelta() { // add three SimpleSnapshot a = new SimpleSnapshot(0, 1, 0); SimpleSnapshot b = new SimpleSnapshot(2, 3, 0); SimpleSnapshot c = new SimpleSnapshot(10, 20, 0); buffer.Add(a.remoteTimestamp, a); buffer.Add(b.remoteTimestamp, b); buffer.Add(c.remoteTimestamp, c); SnapshotInterpolation.GetFirstSecondAndDelta(buffer, out SimpleSnapshot first, out SimpleSnapshot second, out double delta); Assert.That(first, Is.EqualTo(a)); Assert.That(second, Is.EqualTo(b)); Assert.That(delta, Is.EqualTo(b.remoteTimestamp - a.remoteTimestamp)); }