| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 | using Microsoft.VisualStudio.TestTools.UnitTesting;using Renci.SshNet.Common;using Renci.SshNet.Security;using Renci.SshNet.Tests.Common;namespace Renci.SshNet.Tests.Classes.Security{    /// <summary>    ///This is a test class for KeyTest and is intended    ///to contain all KeyTest Unit Tests    ///</summary>    [TestClass()]    public class KeyTest : TestBase    {        internal virtual Key CreateKey()        {            // TODO: Instantiate an appropriate concrete class.            Key target = null;            return target;        }        /// <summary>        ///A test for Sign        ///</summary>        [TestMethod]        [Ignore] // placeholder for actual test        public void SignTest()        {            Key target = CreateKey(); // TODO: Initialize to an appropriate value            byte[] data = null; // TODO: Initialize to an appropriate value            byte[] expected = null; // TODO: Initialize to an appropriate value            byte[] actual;            actual = target.Sign(data);            Assert.AreEqual(expected, actual);            Assert.Inconclusive("Verify the correctness of this test method.");        }        /// <summary>        ///A test for VerifySignature        ///</summary>        [TestMethod]        [Ignore] // placeholder for actual test        public void VerifySignatureTest()        {            Key target = CreateKey(); // TODO: Initialize to an appropriate value            byte[] data = null; // TODO: Initialize to an appropriate value            byte[] signature = null; // TODO: Initialize to an appropriate value            bool expected = false; // TODO: Initialize to an appropriate value            bool actual;            actual = target.VerifySignature(data, signature);            Assert.AreEqual(expected, actual);            Assert.Inconclusive("Verify the correctness of this test method.");        }        /// <summary>        ///A test for KeyLength        ///</summary>        [TestMethod]        [Ignore] // placeholder for actual test        public void KeyLengthTest()        {            Key target = CreateKey(); // TODO: Initialize to an appropriate value            int actual;            actual = target.KeyLength;            Assert.Inconclusive("Verify the correctness of this test method.");        }        /// <summary>        ///A test for Public        ///</summary>        [TestMethod]        [Ignore] // placeholder for actual test        public void PublicTest()        {            Key target = CreateKey(); // TODO: Initialize to an appropriate value            BigInteger[] expected = null; // TODO: Initialize to an appropriate value            BigInteger[] actual;            target.Public = expected;            actual = target.Public;            Assert.AreEqual(expected, actual);            Assert.Inconclusive("Verify the correctness of this test method.");        }    }}
 |