public void InsertTwoElementsInside() { VHSData vHSData = new VHSData(); Timestamp first = new Timestamp(0, 0, 10, 8); Timestamp second = new Timestamp(0, 2, 3, 3); vHSData.AddTimestamp(first); vHSData.AddTimestamp(second); var timestamps = vHSData.getTimestamps(); Assert.IsNotNull(timestamps); Assert.AreEqual(3, timestamps.Count); Assert.AreEqual(first, timestamps[0]); Assert.AreEqual(second, timestamps[1]); Assert.AreEqual(3, second.TapeStop); Assert.AreEqual(3, timestamps[2].TapeStart); Assert.AreEqual(10, timestamps[2].TapeStop); Assert.AreEqual(8, first.AnimStart); Assert.AreEqual(10, first.AnimStop); Assert.AreEqual(3, second.AnimStart); Assert.AreEqual(4, second.AnimStop); Assert.AreEqual(11, timestamps[2].AnimStart); Assert.AreEqual(18, timestamps[2].AnimStop); }
public void InsertSingleElement() { VHSData vHSData = new VHSData(); Timestamp first = new Timestamp(0, 0, 4, 6); vHSData.AddTimestamp(first); var timestamps = vHSData.getTimestamps(); Assert.IsNotNull(timestamps); Assert.AreEqual(1, timestamps.Count); Assert.AreEqual(first, timestamps[0]); Assert.AreEqual(6, first.AnimStart); Assert.AreEqual(10, first.AnimStop); }
public void InsertTwoElements() { VHSData vHSData = new VHSData(); Timestamp first = new Timestamp(0, 0, 4, 8); Timestamp second = new Timestamp(0, 4, 6, 3); vHSData.AddTimestamp(first); vHSData.AddTimestamp(second); var timestamps = vHSData.getTimestamps(); Assert.IsNotNull(timestamps); Assert.AreEqual(timestamps.Count, 2); Assert.AreEqual(timestamps[0], first); Assert.AreEqual(timestamps[1], second); Assert.AreEqual(8, first.AnimStart); Assert.AreEqual(12, first.AnimStop); Assert.AreEqual(3, second.AnimStart); Assert.AreEqual(5, second.AnimStop); }
public void InsertTwoElementsOverlay() { VHSData vHSData = new VHSData(); Timestamp first = new Timestamp(0, 0, 4, 8); Timestamp second = new Timestamp(0, 3, 6, 3); vHSData.AddTimestamp(first); vHSData.AddTimestamp(second); var timestamps = vHSData.getTimestamps(); Assert.IsNotNull(timestamps); Assert.AreEqual(2, timestamps.Count); Assert.AreEqual(first, timestamps[0]); Assert.AreEqual(second, timestamps[1]); Assert.AreEqual(3, first.TapeStop); Assert.AreEqual(8, first.AnimStart); Assert.AreEqual(11, first.AnimStop); Assert.AreEqual(3, second.AnimStart); Assert.AreEqual(6, second.AnimStop); }