public void test_isRTBarProcessStart() { //[Test: return ture, RTBDataStartTime is invalid Time and the message time is in 0 second.] DateTime validTime = new DateTime(2015, 11, 21, 9, 50, 0, DateTimeKind.Local); AppMDManager appMDManager = new AppMDManager(null); appMDManager.setRtbDataStartTime(AppConstant.INVALID_TIME); IBMessage validStartMessage = createMessage_for_isRTBarProcessStart(validTime); Assert.IsTrue(appMDManager.isRTBarProcessStart(validStartMessage)); Assert.AreEqual(validTime, appMDManager.getRtbDataStartTime()); //[Test: return false, RTBDataStartTime is invalid Time and the message time is not in 0 second.] DateTime invalidTime = new DateTime(2015, 11, 21, 9, 50, 5, DateTimeKind.Local); appMDManager = new AppMDManager(null); appMDManager.setRtbDataStartTime(AppConstant.INVALID_TIME); IBMessage invalidStartMessage = createMessage_for_isRTBarProcessStart(invalidTime); Assert.IsFalse(appMDManager.isRTBarProcessStart(invalidStartMessage)); Assert.AreEqual(AppConstant.INVALID_TIME, appMDManager.getRtbDataStartTime()); }