public void CalculateNumOfLVIRelatedStatistics_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.Statistics.BayesForGrade = latestTestreport.Statistics.BayesForGrade; currentReport.NumberofLVI = latestTestreport.NumberofLVI; currentReport.Case = latestTestreport.Case; //Act reportService.CalculatePostTestProbability(currentReport.Statistics, currentReport.NumberofLVI); //Assert Assert.Equal(latestTestreport.Statistics.BayesForNumberOfLVI, Decimal.Round(currentReport.Statistics.BayesForNumberOfLVI, 9)); }