public void Dispose_StateUnderTest_ExpectedBehavior() { // Arrange var iso8583Parser = new Iso8583Parser( new TestLogger <Iso8583Parser>(Output), new byte[] { }, new Iso8583ParserConfig { DataElementConfigPath = Files.ISO8583_PARSER_CONFIG }); // Act iso8583Parser.Dispose(); // Assert _mockRepository.VerifyAll(); }
public void Parse_StateUnderTest_ExpectedBehavior(string inputFile, string encoding) { // Arrange var iso8583Parser = new Iso8583Parser( new TestLogger <Iso8583Parser>(Output), System.IO.File.ReadAllBytes(inputFile), new Iso8583ParserConfig { DataElementConfigPath = Files.ISO8583_PARSER_CONFIG, SourceEncodingName = encoding }); // Act iso8583Parser.Parse(); // Assert Assert.NotNull(iso8583Parser); Assert.True(iso8583Parser.Documents.Count > 0); _mockRepository.VerifyAll(); }