GetTime() public method

Gets the qually time for the specified one-based qually number.
/// Thrown when is not positive or is greater than three. ///
public GetTime ( int quallyNumber ) : TimeSpan?
quallyNumber int The one-based qually number.
return TimeSpan?
Ejemplo n.º 1
0
        public void can_get_a_qually_time()
        {
            TimeSpan time;
            var model = new QuallyTimesModel();

            time = TimeSpan.FromSeconds(1d);
            model.SetTime(1, time);
            Assert.Equal(time, model.GetTime(1));

            time = TimeSpan.FromSeconds(2d);
            model.SetTime(2, time);
            Assert.Equal(time, model.GetTime(2));

            time = TimeSpan.FromSeconds(3d);
            model.SetTime(3, time);
            Assert.Equal(time, model.GetTime(3));
        }