public void TestContent() { CastDate currentDate = new CastDate { Time = 1484953200000 }; ReportData reportData = TestUtility.PrepareApplicationReportData("ReportGenerator", null, @".\Data\cocraFuncWeight.json", "AED/applications/3/snapshots/6", "PreVersion 1.5.0 sprint 2 shot 2", "V-1.5.0_Sprint 2_2", currentDate, null, null, null, null, null, null); var component = new EFPAdded(); Dictionary <string, string> config = new Dictionary <string, string>(); var str = component.Content(reportData, config); Assert.AreEqual("89", str); }
public void TestNoResult() { CastDate currentDate = new CastDate { Time = 1484953200000 }; ReportData reportData = TestUtility.PrepareApplicationReportData("ReportGenerator", null, @".\Data\cocraFuncWeight.json", "AED/applications/3/snapshots/6", "PreVersion 1.5.0 sprint 2 shot 2", "V-1.5.0_Sprint 2_2", currentDate, null, null, null, null, null, null); Snapshot snap = reportData.Application.Snapshots.FirstOrDefault(); if (snap != null) { snap.SizingMeasuresResults = null; } var component = new EFPAdded(); Dictionary <string, string> config = new Dictionary <string, string>(); var str = component.Content(reportData, config); Assert.AreEqual("n/a", str); }