Ejemplo n.º 1
0
        public void Encrypt_nullable_int_has_value()
        {
            // arrange
            int?stuff = 2;

            // act
            var encrypted = _crypto.Encrypt(stuff);
            var decrypted = _crypto.DecryptNullableInt(encrypted);

            // assert
            decrypted
            .Should()
            .Be(2);
            encrypted
            .Should()
            .NotBe("2");
        }