public void IsPasswordValid_PasswordShouldNotBeEmpty() { // Arrange bool expected = false; // Act bool actual = AuthServiceImpl.IsPasswordValid(""); // Assert Assert.Equal(expected, actual); }
public void IsPasswordValid_PasswordSizeShouldNotBeMoreThan20Characters() { // Arrange bool expected = false; string tooLongDescription = new string('A', 21); // Act bool actual = AuthServiceImpl.IsPasswordValid(tooLongDescription); // Assert Assert.Equal(expected, actual); }
public void IsPasswordValid_PasswordShouldNotHaveSpacesWithin() { // Arrange bool expected = false; string wrongString = "super contraseña"; // Act bool actual = AuthServiceImpl.IsPasswordValid(wrongString); // Assert Assert.Equal(expected, actual); }
public void IsPasswordValid_PasswordSizeShouldNotBeLessThan8Characters() { // Arrange bool expected = false; string tooShortString = new string('A', 7); // Act bool actual = AuthServiceImpl.IsPasswordValid(tooShortString); // Assert Assert.Equal(expected, actual); }