public void TestNoResult() { ReportData reportData = TestUtility.PrepaReportData("ReportGenerator", null, @".\Data\CurrentBCresults.json", "AED/applications/3/snapshots/6", "PreVersion 1.5.0 sprint 2 shot 2", "V-1.5.0_Sprint 2_2", null, null, null, null, null); var component = new CurrentSnapshotDate(); Dictionary <string, string> config = new Dictionary <string, string>(); var str = component.Content(reportData, config); Assert.AreEqual("n/a", str); }
public void TestContent() { CastDate currentDate = new CastDate { Time = 1484953200000 }; ReportData reportData = TestUtility.PrepareApplicationReportData("ReportGenerator", null, @".\Data\CurrentBCresults.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 CurrentSnapshotDate(); Dictionary <string, string> config = new Dictionary <string, string>(); var str = component.Content(reportData, config); Assert.AreEqual("Jan 21 2017", str); }