public void TestTwoSystems() { 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); Domain.System sys1 = new Domain.System { Name = "my_system" }; Domain.System sys2 = new Domain.System { Name = "my_other system" }; IEnumerable <Domain.System> sys = new[] { sys1, sys2 }; reportData.Application.Systems = sys; var component = new SystemName(); Dictionary <string, string> config = new Dictionary <string, string>(); var str = component.Content(reportData, config); Assert.AreEqual("my_system, my_other system", str); }
public void TestNoResult() { var component = new SystemName(); Dictionary <string, string> config = new Dictionary <string, string>(); var str = component.Content(null, config); Assert.AreEqual("n/a", str); }