public void EventDataSetStream_GetValue_ReturnsZeroOnInvalidFrame()
        {
            EventDataSetStream testStream = new EventDataSetStream();

            Assert.AreEqual(0, testStream.GetValue(0), "Expected default value of 0 because there are no samples currently in EventDataStream.");
            testStream.AddSample(0, 1);
            Assert.AreEqual(0, testStream.GetValue(-1), "Expected default value because there is no sample with frame -1.");
        }
        public void EventDataSetStream_GetValue_ReturnsCorrectValueOnMultipleCalls()
        {
            EventDataSetStream testStream = new EventDataSetStream();

            testStream.AddSample(0, 0);
            testStream.AddSample(1, 1);
            testStream.AddSample(2, 2);
            Assert.AreEqual(2, testStream.GetValue(2), "Incorrect value retrieved by GetValue.");
            Assert.AreEqual(1, testStream.GetValue(1), "Incorrect value retrieved by GetValue.");
            Assert.AreEqual(0, testStream.GetValue(0), "Incorrect value retrieved by GetValue.");
        }
        public void EventDataSetStream_GetValue_ReturnsLastValueOnTooLargeFrame()
        {
            EventDataSetStream testStream = new EventDataSetStream();

            testStream.AddSample(5, 5);
            Assert.AreEqual(5, testStream.GetValue(100), "Final contained sample was not returned on too large query frame.");
        }
        public void EventDataSetStream_AddSample_SimpleAdd()
        {
            EventDataSetStream testStream = new EventDataSetStream();

            testStream.AddSample(0, 5);
            Assert.AreEqual(5, testStream.GetValue(0), "Value of added sample was not correctly retrieved. ");
        }
        public void EventDataSetStream_AddSample_ReplaceValueOnDuplicateAdd()
        {
            EventDataSetStream testStream = new EventDataSetStream();

            testStream.AddSample(0, 5);
            testStream.AddSample(0, 6);
            Assert.AreEqual(6, testStream.GetValue(0), "Sample was not properly replaced. ");
            Assert.AreEqual(1, testStream.samples.Count, "Sample was not properly replaced.");
        }