public void Tests(string accountNumber, bool isValid) { //Arrange IAccountNumberValidationService accountNumberValidationService = new AccountNumberValidationService(); //Act bool actualResult = accountNumberValidationService.IsChecksumValid(accountNumber); //Assert actualResult.Should().Be(isValid, because: "The validation service should return if the account number is valid or not"); }
public void Tests(string input, string expectedResult) { //Arrange IAccountNumberParsingService accountNumberParsingService = new AccountNumberParsingService(); IAccountNumberValidationService accountNumberValidationService = new AccountNumberValidationService(); IOcrInputReaderService ocrInputReaderService = new OcrInputReaderService(accountNumberParsingService, accountNumberValidationService); //Act string actualResult = ocrInputReaderService.VerifyOcrInputAccountingForMistakes(input); //Assert actualResult.Should().BeEquivalentTo(expectedResult, because: "The file reader service should return the account number along with information on validity of legibility and checksum"); }