Ejemplo n.º 1
0
        public void RaceTimeCalculator_totalIsCorrect()
        {
            Driver driver = new F1("jabir", "f1", 76);
            int    time   = 35;
            int    time2  = 35;

            //Act
            List <int> TimeSpentOnSegment = new List <int>();

            TimeSpentOnSegment.Add(time);
            TimeSpentOnSegment.Add(time2);

            driver.RaceTimeCalculator(TimeSpentOnSegment);

            //Assert
            Assert.AreEqual(70, driver.TotalTime);
        }