public void Crypto_EncodeNukkPassword_ReturnNull() { const string password = null; var crypto = new Crytpo.Crypto(); var actual = crypto.Encode(password); actual.Should().BeNull("because the value is null"); }
public void Crypto_Encode_ReturnEncodedPassword() { const string expected = "+hAXpd+5jDY50Ekni6elPQ=="; const string password = "******"; var crypto = new Crytpo.Crypto(); var actual = crypto.Encode(password); actual.Should().Match(expected); }