Ejemplo n.º 1
0
        public void CanCalculateAverageSpeed()
        {
            //Arrange
            var totalDistance = 500M;
            var totalHours    = new TimeSpan(5, 30, 0).TotalHours;
            //Act
            int speed = ReportData.CalculateAverageSpeed(totalDistance, totalHours);

            //Assert
            Assert.AreEqual(91, speed);
        }