public void EntryDetailSection_should_return_correct_string() { //arrange var entryDetailSection = new EntryDetailSection(22, 12345678, 1, "dfs23", 233456.45, "123454567", "First", 1, false); //act var actual = entryDetailSection.RenderSection(); //assert actual.Should().Be("622123456781dfs23 0023345645AU0000123454567FIRST 0121144550000001"); }
public void SectionsRender_should_return_correct_string_length() { //arrange int size = 94; var header = new FileHeaderSection(DateTime.Now, DateTime.Now, "A"); var companyBatchHeader = new CompanyBatchHeaderSection(DateTime.Now, DateTime.Now, 1234); var entryDetailSection = new EntryDetailSection(1, 5667, 1, "dfs23", 233456.45, "123454567", "First", 1, true); var companyBatchControlSection = new CompanyBatchControlSection(1, 1, 32154356.34, 1); var fileTrailerSection = new FileTrailerSection(1, 12, 1, 324543.44); //act var actual = header.RenderSection(); var actual1 = companyBatchHeader.RenderSection(); var actual2 = entryDetailSection.RenderSection(); var actual3 = companyBatchControlSection.RenderSection(); var actual4 = fileTrailerSection.RenderSection(); //assert actual.Length.Should().Be(size); actual1.Length.Should().Be(size); actual2.Length.Should().Be(size); actual3.Length.Should().Be(size); actual4.Length.Should().Be(size); }