public void FileDir_PrepareDate() { IFileService service = new StubFileService(); ReportViewer reportViewer = new ReportViewer(service); // Dependency Injection Assert.IsTrue(reportViewer.PrepareData()); }
public void BlockCount() { IFileService service = new StubFileService(); ReportViewer reportViewer = new ReportViewer(service); reportViewer.PrepareData(); Assert.AreEqual(4, reportViewer.BlockCount); }