public void VerifyPassword_given_correct_password_returns_true() { // arrange CryptoService cryptoService = new CryptoService(); // act bool verifyPassword = cryptoService.VerifyPassword("R9WRwHWu+SXABMLfG+2i3rAb6BmsbDf0rFnm0XkSyzk=", "4art8TSw2hi4hgu2EN0DrSnvOX5/sjFs8IyJxm4j/VQ=", "password"); // assert Assert.IsTrue(verifyPassword); }
public void VerifyPassword_given_null_or_whitespace_password_throws_ArgumentException(string password) { // arrange CryptoService cryptoService = new CryptoService(); // assert Assert.Throws<ArgumentException>(() => cryptoService.VerifyPassword("salt", "hash", password)); }