public void TestModuleList() { CastDate currentDate = new CastDate { Time = 1492984800000 }; ReportData reportData = TestUtility.PrepareApplicationReportData("CoCRestAPI", @".\Data\ModulesCoCRA.json", @".\Data\CurrentBCTCmodules.json", "AED/applications/3/snapshots/4", "Snap4_CAIP-8.3ra_RG-1.5.a", "8.3.ra", currentDate, null, null, null, null, null, null); var component = new ModuleList(); Dictionary <string, string> config = new Dictionary <string, string>(); var table = component.Content(reportData, config); var expectedData = new List <string>(); expectedData.AddRange(new List <string> { "Module Name" }); expectedData.AddRange(new List <string> { "AAD-Admin" }); expectedData.AddRange(new List <string> { "AED-Admin" }); expectedData.AddRange(new List <string> { "ReportGenerator" }); TestUtility.AssertTableContent(table, expectedData, 1, 4); Assert.IsTrue(table.HasColumnHeaders); }