コード例 #1
0
        public void DoDecryptNonWritableDataAsyncTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedProtectedKeyCipher();

                target.PublicDoDecryptAsync(new MemoryStream(new byte[10]), TestUtilities.CreateNonWritableStream()).Wait();
            });
        }
コード例 #2
0
        public void BeforeReadDecryptedNonReadableStreamAsyncTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedProtectedKeyCipher();

                target.PublicBeforeReadDecryptedAsync(TestUtilities.CreateNonReadableStream()).Wait();
            });
        }
コード例 #3
0
        public void DoDecryptNullCryptoAsyncTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedProtectedKeyCipher();

                target.PublicDoDecryptAsync(null, new MemoryStream(new byte[10])).Wait();
            });
        }
コード例 #4
0
        public void BeforeWriteEncryptedNullStreamAsyncTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedProtectedKeyCipher();

                target.PublicBeforeWriteEncryptedAsync(null).Wait();
            });
        }
コード例 #5
0
        public void DoDecryptNonWritableDataTest()
        {
            var target = new InheritedProtectedKeyCipher();

            target.PublicDoDecrypt(new MemoryStream(new byte[10]), TestUtilities.CreateNonWritableStream());
        }
コード例 #6
0
        public void DoDecryptNonReadableCryptoTest()
        {
            var target = new InheritedProtectedKeyCipher();

            target.PublicDoDecrypt(TestUtilities.CreateNonReadableStream(), new MemoryStream(new byte[10]));
        }
コード例 #7
0
        public void CreateDecryptingStreamNonReadableTest()
        {
            var target = new InheritedProtectedKeyCipher();

            target.PublicCreateDecryptingStream(TestUtilities.CreateNonReadableStream());
        }
コード例 #8
0
        public void BeforeReadDecryptedNonReadableStreamTest()
        {
            var target = new InheritedProtectedKeyCipher();

            target.PublicBeforeReadDecrypted(TestUtilities.CreateNonReadableStream());
        }