public void CalculateTumourSizeRelatedStatistics_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.Case = latestTestreport.Case; //Act reportService.CalculateSizeBasedStatistics(currentReport.Statistics, currentReport.Case.TumourSize); //Assert Assert.Equal(latestTestreport.Statistics.BayesForSize, Decimal.Round(currentReport.Statistics.BayesForSize, 9)); }