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

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

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