public void CalculateTumourGradeRelatedStatistics_CalculatesCorrectly(Report[] testReports) { //Arrange var reportService = new ReportService(null, null); Report latestTestreport = testReports[testReports.Length - 1]; Report currentReport = new Report(latestTestreport.UserReportNumber, latestTestreport.LVIStudyUserID, latestTestreport.CaseId, new ReportStatistics(), false); currentReport.Statistics.BayesForAge = latestTestreport.Statistics.BayesForAge; currentReport.Statistics.BayesForSize = latestTestreport.Statistics.BayesForSize; currentReport.TumourGrade = latestTestreport.TumourGrade; currentReport.Case = latestTestreport.Case; //Act reportService.CalculatePreTestProbability(currentReport.Statistics, currentReport.TumourGrade); //Assert Assert.Equal(latestTestreport.Statistics.BayesForGrade, Decimal.Round(currentReport.Statistics.BayesForGrade, 9)); }