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

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

                target.PublicDoEncryptAsync(null, new MemoryStream(new byte[10])).Wait();
            });
        }