public void throws_format_exception_when_branch_is_not_numeric()
    {
        // +Arrange
        var sut = new DepositAccountStatementDeserializer();

        // +Act
        var exception = Assert.Throws <FormatException>(() => sut.DeserializeTdv(SampleDepositAccountReports.TdvAccountMalformedBranch));

        // +Assert
        exception.Message.Should().Be("Expected a numeric branch identifier; given 'oops'.");
    }
Пример #2
0
    public TsvFixture()
    {
        var sut = new DepositAccountStatementDeserializer();

        Statement = sut.DeserializeTdv(SampleDepositAccountReports.BasicTdv);
    }