Exemplo n.º 1
0
        public void ResetTest()
        {
            TimeBlock timeBlock = new TimeBlock(start, duration);

            Assert.Equal(timeBlock.Start, start);
            Assert.True(timeBlock.HasStart);
            Assert.Equal(timeBlock.End, end);
            Assert.True(timeBlock.HasEnd);
            Assert.Equal(timeBlock.Duration, duration);
            timeBlock.Reset();
            Assert.Equal(timeBlock.Start, TimeSpec.MinPeriodDate);
            Assert.False(timeBlock.HasStart);
            Assert.Equal(timeBlock.End, TimeSpec.MaxPeriodDate);
            Assert.False(timeBlock.HasEnd);
        }         // ResetTest
Exemplo n.º 2
0
        public void ResetTest()
        {
            TimeBlock timeBlock = new TimeBlock(_start, _duration);

            Assert.AreEqual(timeBlock.Start, _start);
            Assert.IsTrue(timeBlock.HasStart);
            Assert.AreEqual(timeBlock.End, _end);
            Assert.IsTrue(timeBlock.HasEnd);
            Assert.AreEqual(timeBlock.Duration, _duration);

            timeBlock.Reset();
            Assert.AreEqual(timeBlock.Start, TimeSpec.MinPeriodTime);
            Assert.IsFalse(timeBlock.HasStart);
            Assert.AreEqual(timeBlock.End, TimeSpec.MaxPeriodTime);
            Assert.IsFalse(timeBlock.HasEnd);
        }
Exemplo n.º 3
0
        public void ResetTest() {
            TimeBlock timeBlock = new TimeBlock(_start, _duration);
            Assert.AreEqual(timeBlock.Start, _start);
            Assert.IsTrue(timeBlock.HasStart);
            Assert.AreEqual(timeBlock.End, _end);
            Assert.IsTrue(timeBlock.HasEnd);
            Assert.AreEqual(timeBlock.Duration, _duration);

            timeBlock.Reset();
            Assert.AreEqual(timeBlock.Start, TimeSpec.MinPeriodTime);
            Assert.IsFalse(timeBlock.HasStart);
            Assert.AreEqual(timeBlock.End, TimeSpec.MaxPeriodTime);
            Assert.IsFalse(timeBlock.HasEnd);
        }