public void IsValid_GivenInput_ReturnsExpected(string input, bool expected) { // Given When var result = _sut.IsValid(input); // Then result.Should().Be(expected); }
public string GetSolution() { var passwords = _inputService.GetInput(resourceLocation); var passwordValidator = new PasswordValidator202002(); var result = 0; foreach (var password in passwords) { if (passwordValidator.IsValid(password)) { result += 1; } } return($"{result}"); }