Exemplo n.º 1
0
        public void SuperSoftTyre_CalculationCorrect()
        {
            _tyreInformation = new TyreInformation
            {
                Type = TyreCompound.SuperSoft,
                DegradationCoefficient = 10
            };
            var result = _calculator.Calculate(_tyreInformation, _trackPoints, _temperature);

            result.Average.Should().BeApproximately(660, 1);
            result.Range.Should().BeApproximately(2086, 1);
        }
 private DegradationResults CalculateDegradationResults(TyrePlacement placement)
 {
     return(_degradationCalculator.Calculate(_selectedTyres[placement], _selectedTrack.DegradationPoints,
                                             _temperature));
 }