public void SerializeTheSameAsSqlServer(decimal plaintext)
        {
            SqlSmallmoneySerializer serializer = new SqlSmallmoneySerializer();

            byte[] serializedPlaintext = serializer.Serialize(plaintext);
            byte[] expectedCiphertext  = deterministicEncryptionAlgorithm.Encrypt(serializedPlaintext);

            Database.Insert(new SqlParameter("@parameter", SqlDbType.SmallMoney)
            {
                Value = plaintext
            });
            byte[] actualCiphertext = Database.SelectCiphertext(SqlDbType.SmallMoney);

            Assert.Equal(expectedCiphertext, actualCiphertext);
        }
        public void ThrowWhenValueOutOfRange(decimal plaintext)
        {
            SqlSmallmoneySerializer serializer = new SqlSmallmoneySerializer();

            Assert.Throws <ArgumentOutOfRangeException>(() => serializer.Serialize(plaintext));
        }