Example #1
0
        public void test_updateRTBarSeriesActions_init()
        {
            //[Test: Init Case, TimeBarSeries is null and currentCompleteRTB is not null]
            DateTime     time1        = new DateTime(2015, 10, 21, 10, 0, 0, DateTimeKind.Local);
            AppMDManager appMDManager = createManager_updateRTBarSeriesActions_init(time1);

            appMDManager.updateRTBarSeriesActions();
            MarketDataElement element = appMDManager.getTimeBarSeries().Get(time1);

            Assert.AreEqual(time1, element.time);
            Assert.AreEqual(1, appMDManager.getTimeBarSeries().KeyCount);
        }
Example #2
0
        public void test_updateRTBarSeriesActions_cont_negative()
        {
            //[Test: Continuou Case, TimeBarSeries is not null and currentCompleteRTB is not null]
            DateTime     time1        = new DateTime(2015, 10, 21, 10, 0, 0, DateTimeKind.Local);
            DateTime     time2        = new DateTime(2015, 10, 21, 10, 1, 0, DateTimeKind.Local);
            AppMDManager appMDManager = createManager_updateRTBarSeriesActions_cont_negative(time1, time2);

            appMDManager.updateRTBarSeriesActions();
            MarketDataElement element1 = appMDManager.getTimeBarSeries().Get(time1);

            Assert.AreEqual(time1, element1.time);
            Assert.AreEqual(1, appMDManager.getTimeBarSeries().KeyCount);
        }