Exemplo n.º 1
0
        public void SetTimeTest_SetTime_ClockReturns_09_00_00()
        {
            ClockSimulator clockSim = new ClockSimulator(1, 60);

            clockSim.SetTime(new TimeSpan(09, 00, 00));

            Assert.Equal("09:00", clockSim.TimeToString());
        }
        public void SetTimeTest_SetClockSimTime_ClockSimTimeIs1100()
        {
            //Arrange
            ClockSimulator clockSim = new ClockSimulator(1, 60);

            //Act
            clockSim.SetTime(new TimeSpan(11, 00, 00));

            //Assert
            Assert.AreEqual("11:00", clockSim.TimeToString());
        }