Пример #1
0
        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");
        }
Пример #2
0
        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);
        }