Ejemplo n.º 1
0
        public void DoDecryptNonWritableDataAsyncTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedProtectedKeyCipher();

                target.PublicDoDecryptAsync(new MemoryStream(new byte[10]), TestUtilities.CreateNonWritableStream()).Wait();
            });
        }
Ejemplo n.º 2
0
        public void BeforeReadDecryptedNonReadableStreamAsyncTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedProtectedKeyCipher();

                target.PublicBeforeReadDecryptedAsync(TestUtilities.CreateNonReadableStream()).Wait();
            });
        }
Ejemplo n.º 3
0
        public void DoDecryptNullCryptoAsyncTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedProtectedKeyCipher();

                target.PublicDoDecryptAsync(null, new MemoryStream(new byte[10])).Wait();
            });
        }
Ejemplo n.º 4
0
        public void BeforeWriteEncryptedNullStreamAsyncTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedProtectedKeyCipher();

                target.PublicBeforeWriteEncryptedAsync(null).Wait();
            });
        }
Ejemplo n.º 5
0
        public void DoDecryptNonWritableDataTest()
        {
            var target = new InheritedProtectedKeyCipher();

            target.PublicDoDecrypt(new MemoryStream(new byte[10]), TestUtilities.CreateNonWritableStream());
        }
Ejemplo n.º 6
0
        public void DoDecryptNonReadableCryptoTest()
        {
            var target = new InheritedProtectedKeyCipher();

            target.PublicDoDecrypt(TestUtilities.CreateNonReadableStream(), new MemoryStream(new byte[10]));
        }
Ejemplo n.º 7
0
        public void CreateDecryptingStreamNonReadableTest()
        {
            var target = new InheritedProtectedKeyCipher();

            target.PublicCreateDecryptingStream(TestUtilities.CreateNonReadableStream());
        }
Ejemplo n.º 8
0
        public void BeforeReadDecryptedNonReadableStreamTest()
        {
            var target = new InheritedProtectedKeyCipher();

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