Exemple #1
0
        public void BeforeReadDecryptedAsyncNullStreamTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedEncryptedNewKeyCipher();

                target.PublicBeforeReadDecryptedAsync(null).Wait();
            });
        }
Exemple #2
0
        public void BeforeReadDecryptedAsyncNonReadableStreamTest()
        {
            TestUtilities.AsyncTestWrapper(TestContext, () =>
            {
                var target = new InheritedEncryptedNewKeyCipher();

                using (var stream = TestUtilities.CreateNonReadableStream())
                    target.PublicBeforeReadDecryptedAsync(stream).Wait();
            });
        }