Пример #1
0
        public void ToStringTest()
        {
            TimeSpan  delayTimeSpan = new TimeSpan();               // TODO: 初始化为适当的值
            TimeSlice target        = new TimeSlice(delayTimeSpan); // TODO: 初始化为适当的值
            string    expected      = string.Empty;                 // TODO: 初始化为适当的值
            string    actual;

            actual = target.ToString();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Пример #2
0
        public override string ToString()
        {
            string dm = _isDayTrade? "日盘" : "夜盘";

            return(_slice.ToString() + " " + dm);
        }