コード例 #1
0
ファイル: AESDecryptTest.cs プロジェクト: poweryang1990/Snow
        public void when_key_is_null_should_throw_ArgumentNullException()
        {
            var clearByte = new byte [] { 1 };
            var key       = (byte[])null;

            // ReSharper disable once ExpressionIsAlwaysNull
            Assert.Throws <ArgumentNullException>(() => clearByte.AESDecrypt(key));
        }