| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 | using Renci.SshNet.Common;using Microsoft.VisualStudio.TestTools.UnitTesting;using System;using System.Threading;using Renci.SshNet.Tests.Common;namespace Renci.SshNet.Tests.Classes.Common{            /// <summary>    ///This is a test class for AsyncResultTest and is intended    ///to contain all AsyncResultTest Unit Tests    ///</summary>    [TestClass()]    public class AsyncResultTest : TestBase    {        /// <summary>        ///A test for EndInvoke        ///</summary>        public void EndInvokeTest1Helper<TResult>()        {            AsyncResult<TResult> target = CreateAsyncResult<TResult>(); // TODO: Initialize to an appropriate value            TResult expected = default(TResult); // TODO: Initialize to an appropriate value            TResult actual;            actual = target.EndInvoke();            Assert.AreEqual(expected, actual);            Assert.Inconclusive("Verify the correctness of this test method.");        }        internal virtual AsyncResult<TResult> CreateAsyncResult<TResult>()        {            // TODO: Instantiate an appropriate concrete class.            AsyncResult<TResult> target = null;            return target;        }        [TestMethod()]        public void EndInvokeTest1()        {            EndInvokeTest1Helper<GenericParameterHelper>();        }        /// <summary>        ///A test for SetAsCompleted        ///</summary>        public void SetAsCompletedTest1Helper<TResult>()        {            AsyncResult<TResult> target = CreateAsyncResult<TResult>(); // TODO: Initialize to an appropriate value            TResult result = default(TResult); // TODO: Initialize to an appropriate value            bool completedSynchronously = false; // TODO: Initialize to an appropriate value            target.SetAsCompleted(result, completedSynchronously);            Assert.Inconclusive("A method that does not return a value cannot be verified.");        }        [TestMethod()]        public void SetAsCompletedTest1()        {            SetAsCompletedTest1Helper<GenericParameterHelper>();        }        internal virtual AsyncResult CreateAsyncResult()        {            // TODO: Instantiate an appropriate concrete class.            AsyncResult target = null;            return target;        }        /// <summary>        ///A test for EndInvoke        ///</summary>        [TestMethod()]        public void EndInvokeTest()        {            AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value            target.EndInvoke();            Assert.Inconclusive("A method that does not return a value cannot be verified.");        }        /// <summary>        ///A test for SetAsCompleted        ///</summary>        [TestMethod()]        public void SetAsCompletedTest()        {            AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value            Exception exception = null; // TODO: Initialize to an appropriate value            bool completedSynchronously = false; // TODO: Initialize to an appropriate value            target.SetAsCompleted(exception, completedSynchronously);            Assert.Inconclusive("A method that does not return a value cannot be verified.");        }        /// <summary>        ///A test for AsyncState        ///</summary>        [TestMethod()]        public void AsyncStateTest()        {            AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value            object actual;            actual = target.AsyncState;            Assert.Inconclusive("Verify the correctness of this test method.");        }        /// <summary>        ///A test for AsyncWaitHandle        ///</summary>        [TestMethod()]        public void AsyncWaitHandleTest()        {            AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value            WaitHandle actual;            actual = target.AsyncWaitHandle;            Assert.Inconclusive("Verify the correctness of this test method.");        }        /// <summary>        ///A test for CompletedSynchronously        ///</summary>        [TestMethod()]        public void CompletedSynchronouslyTest()        {            AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value            bool actual;            actual = target.CompletedSynchronously;            Assert.Inconclusive("Verify the correctness of this test method.");        }        /// <summary>        ///A test for IsCompleted        ///</summary>        [TestMethod()]        public void IsCompletedTest()        {            AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value            bool actual;            actual = target.IsCompleted;            Assert.Inconclusive("Verify the correctness of this test method.");        }    }}
 |