コード例 #1
0
        public void SetUp()
        {
            response = new Response();

            stream = new ResponseInputDataStream(response, Option<TimeSpan>.Some(TimeSpan.FromSeconds(3)));
        }
コード例 #2
0
        public void PushInputDataAllowsForDataGranularity()
        {
            var srate = new Measurement(1, "Hz");
            IList<IMeasurement> list = new List<IMeasurement>() { new Measurement(1, "V") };

            var grainyData = new InputData(list, srate, DateTime.Now);

            var dur = TimeSpan.FromSeconds(0.6);
            var shortStream = new ResponseInputDataStream(response, Option<TimeSpan>.Some(dur));

            var cons = grainyData.SplitData(dur);

            Assert.DoesNotThrow(() => shortStream.PushInputData(cons.Head));
        }