public void FillPlainlDataWithArchiveTest() { var report = new BaseReportStub(); report.FillPlainData(ReportArchiveMode.ActualWithArchive); Assert.AreEqual(8, report.DataSet.Table.Count); DataTable table = report.DataSet.Table.DefaultView.ToTable(); Assert.AreEqual(DBNull.Value, table.Rows[0]["Disease"]); Assert.AreEqual(DBNull.Value, table.Rows[1]["Disease"]); Assert.AreEqual("A", table.Rows[2]["Disease"]); Assert.AreEqual("B", table.Rows[3]["Disease"]); Assert.AreEqual("B", table.Rows[4]["Disease"]); }
public void FillPlainDataWithoutArchiveTest() { var report = new BaseReportStub(); report.FillPlainData(ReportArchiveMode.ActualOnly); Assert.AreEqual(4, report.DataSet.Table.Count); DataTable table = report.DataSet.Table.DefaultView.ToTable(); Assert.AreEqual(DBNull.Value, table.Rows[0]["Number"]); Assert.AreEqual(0.0, table.Rows[0]["Double"]); Assert.AreEqual(DBNull.Value, table.Rows[0]["Disease"]); Assert.AreEqual("A", table.Rows[1]["Disease"]); }