From afeeeb310d5463f8872848991e1c1a3f685662c1 Mon Sep 17 00:00:00 2001 From: drieseng Date: Fri, 22 Jul 2016 19:20:10 +0200 Subject: [PATCH] Ignore bunch of placeholder tests. --- .../Classes/Compression/ZlibStreamTest.cs | 8 +++-- .../Classes/ForwardedPortRemoteTest.cs | 3 ++ .../Authentication/BannerMessageTest.cs | 12 ++++---- .../Authentication/FailureMessageTest.cs | 8 +++-- .../RequestMessagePublicKeyTest.cs | 12 +++++--- .../Authentication/SuccessMessageTest.cs | 12 ++++---- .../Security/CertificateHostAlgorithmTest.cs | 1 + .../Security/Cryptography/DsaKeyTest.cs | 29 ++++++++++++------- .../KeyExchangeDiffieHellmanGroup1Sha1Test.cs | 11 ++++--- ...ngeDiffieHellmanGroupExchangeSha256Test.cs | 8 +++-- .../Sftp/SftpDownloadAsyncResultTest.cs | 5 ++-- .../Sftp/SftpFileSystemInformationTest.cs | 8 +++-- ...tpSynchronizeDirectoriesAsyncResultTest.cs | 5 ++-- 13 files changed, 76 insertions(+), 46 deletions(-) diff --git a/src/Renci.SshNet.Tests/Classes/Compression/ZlibStreamTest.cs b/src/Renci.SshNet.Tests/Classes/Compression/ZlibStreamTest.cs index 489bc660..dd1c93bf 100644 --- a/src/Renci.SshNet.Tests/Classes/Compression/ZlibStreamTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Compression/ZlibStreamTest.cs @@ -10,13 +10,14 @@ namespace Renci.SshNet.Tests.Classes.Compression ///This is a test class for ZlibStreamTest and is intended ///to contain all ZlibStreamTest Unit Tests /// - [TestClass()] + [TestClass] public class ZlibStreamTest : TestBase { /// ///A test for ZlibStream Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void ZlibStreamConstructorTest() { Stream stream = null; // TODO: Initialize to an appropriate value @@ -28,7 +29,8 @@ namespace Renci.SshNet.Tests.Classes.Compression /// ///A test for Write /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void WriteTest() { Stream stream = null; // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/ForwardedPortRemoteTest.cs b/src/Renci.SshNet.Tests/Classes/ForwardedPortRemoteTest.cs index 7087e74b..afa76e63 100644 --- a/src/Renci.SshNet.Tests/Classes/ForwardedPortRemoteTest.cs +++ b/src/Renci.SshNet.Tests/Classes/ForwardedPortRemoteTest.cs @@ -76,6 +76,7 @@ namespace Renci.SshNet.Tests.Classes ///A test for Stop /// [TestMethod] + [Ignore] // placeholder public void StopTest() { uint boundPort = 0; // TODO: Initialize to an appropriate value @@ -124,6 +125,7 @@ namespace Renci.SshNet.Tests.Classes ///A test for ForwardedPortRemote Constructor /// [TestMethod] + [Ignore] // placeholder public void ForwardedPortRemoteConstructorTest() { string boundHost = string.Empty; // TODO: Initialize to an appropriate value @@ -138,6 +140,7 @@ namespace Renci.SshNet.Tests.Classes ///A test for ForwardedPortRemote Constructor /// [TestMethod] + [Ignore] // placeholder public void ForwardedPortRemoteConstructorTest1() { uint boundPort = 0; // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/Messages/Authentication/BannerMessageTest.cs b/src/Renci.SshNet.Tests/Classes/Messages/Authentication/BannerMessageTest.cs index 89826f39..0c102135 100644 --- a/src/Renci.SshNet.Tests/Classes/Messages/Authentication/BannerMessageTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Messages/Authentication/BannerMessageTest.cs @@ -1,21 +1,21 @@ -using Renci.SshNet.Messages.Authentication; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Renci.SshNet.Messages.Authentication; using Renci.SshNet.Tests.Common; -namespace Renci.SshNet.Tests.Messages.Authentication +namespace Renci.SshNet.Tests.Classes.Messages.Authentication { /// ///This is a test class for BannerMessageTest and is intended ///to contain all BannerMessageTest Unit Tests /// - [TestClass()] + [TestClass] public class BannerMessageTest : TestBase { /// ///A test for BannerMessage Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void BannerMessageConstructorTest() { BannerMessage target = new BannerMessage(); diff --git a/src/Renci.SshNet.Tests/Classes/Messages/Authentication/FailureMessageTest.cs b/src/Renci.SshNet.Tests/Classes/Messages/Authentication/FailureMessageTest.cs index 859a4554..9f0169f0 100644 --- a/src/Renci.SshNet.Tests/Classes/Messages/Authentication/FailureMessageTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Messages/Authentication/FailureMessageTest.cs @@ -9,13 +9,14 @@ namespace Renci.SshNet.Tests.Messages.Authentication ///This is a test class for FailureMessageTest and is intended ///to contain all FailureMessageTest Unit Tests /// - [TestClass()] + [TestClass] public class FailureMessageTest : TestBase { /// ///A test for FailureMessage Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void FailureMessageConstructorTest() { FailureMessage target = new FailureMessage(); @@ -25,7 +26,8 @@ namespace Renci.SshNet.Tests.Messages.Authentication /// ///A test for AllowedAuthentications /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void AllowedAuthenticationsTest() { FailureMessage target = new FailureMessage(); // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/Messages/Authentication/RequestMessagePublicKeyTest.cs b/src/Renci.SshNet.Tests/Classes/Messages/Authentication/RequestMessagePublicKeyTest.cs index f63e9977..73ed383a 100644 --- a/src/Renci.SshNet.Tests/Classes/Messages/Authentication/RequestMessagePublicKeyTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Messages/Authentication/RequestMessagePublicKeyTest.cs @@ -16,7 +16,8 @@ namespace Renci.SshNet.Tests.Messages.Authentication /// ///A test for RequestMessagePublicKey Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void RequestMessagePublicKeyConstructorTest() { ServiceName serviceName = new ServiceName(); // TODO: Initialize to an appropriate value @@ -30,7 +31,8 @@ namespace Renci.SshNet.Tests.Messages.Authentication /// ///A test for RequestMessagePublicKey Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void RequestMessagePublicKeyConstructorTest1() { ServiceName serviceName = new ServiceName(); // TODO: Initialize to an appropriate value @@ -45,7 +47,8 @@ namespace Renci.SshNet.Tests.Messages.Authentication /// ///A test for MethodName /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void MethodNameTest() { ServiceName serviceName = new ServiceName(); // TODO: Initialize to an appropriate value @@ -61,7 +64,8 @@ namespace Renci.SshNet.Tests.Messages.Authentication /// ///A test for Signature /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void SignatureTest() { ServiceName serviceName = new ServiceName(); // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/Messages/Authentication/SuccessMessageTest.cs b/src/Renci.SshNet.Tests/Classes/Messages/Authentication/SuccessMessageTest.cs index 41659b1a..24cdbe3c 100644 --- a/src/Renci.SshNet.Tests/Classes/Messages/Authentication/SuccessMessageTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Messages/Authentication/SuccessMessageTest.cs @@ -1,10 +1,9 @@ -using Renci.SshNet.Messages.Authentication; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Renci.SshNet.Messages.Authentication; using Renci.SshNet.Tests.Common; -namespace Renci.SshNet.Tests.Messages.Authentication -{ +namespace Renci.SshNet.Tests.Classes.Messages.Authentication +{ /// ///This is a test class for SuccessMessageTest and is intended ///to contain all SuccessMessageTest Unit Tests @@ -15,7 +14,8 @@ namespace Renci.SshNet.Tests.Messages.Authentication /// ///A test for SuccessMessage Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void SuccessMessageConstructorTest() { SuccessMessage target = new SuccessMessage(); diff --git a/src/Renci.SshNet.Tests/Classes/Security/CertificateHostAlgorithmTest.cs b/src/Renci.SshNet.Tests/Classes/Security/CertificateHostAlgorithmTest.cs index 813fec59..31beb9f2 100644 --- a/src/Renci.SshNet.Tests/Classes/Security/CertificateHostAlgorithmTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Security/CertificateHostAlgorithmTest.cs @@ -15,6 +15,7 @@ namespace Renci.SshNet.Tests.Classes.Security ///A test for CertificateHostAlgorithm Constructor /// [TestMethod] + [Ignore] // placeholder public void CertificateHostAlgorithmConstructorTest() { string name = string.Empty; // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/Security/Cryptography/DsaKeyTest.cs b/src/Renci.SshNet.Tests/Classes/Security/Cryptography/DsaKeyTest.cs index 2e4c22ee..57fe73f5 100644 --- a/src/Renci.SshNet.Tests/Classes/Security/Cryptography/DsaKeyTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Security/Cryptography/DsaKeyTest.cs @@ -9,13 +9,14 @@ namespace Renci.SshNet.Tests.Classes.Security.Cryptography ///This is a test class for DsaKeyTest and is intended ///to contain all DsaKeyTest Unit Tests /// - [TestClass()] + [TestClass] public class DsaKeyTest : TestBase { /// ///A test for DsaKey Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void DsaKeyConstructorTest() { DsaKey target = new DsaKey(); @@ -37,7 +38,8 @@ namespace Renci.SshNet.Tests.Classes.Security.Cryptography /// ///A test for DsaKey Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void DsaKeyConstructorTest2() { BigInteger p = new BigInteger(); // TODO: Initialize to an appropriate value @@ -52,7 +54,8 @@ namespace Renci.SshNet.Tests.Classes.Security.Cryptography /// ///A test for Dispose /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void DisposeTest() { DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value @@ -63,7 +66,8 @@ namespace Renci.SshNet.Tests.Classes.Security.Cryptography /// ///A test for G /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void GTest() { DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value @@ -75,7 +79,8 @@ namespace Renci.SshNet.Tests.Classes.Security.Cryptography /// ///A test for KeyLength /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void KeyLengthTest() { DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value @@ -87,7 +92,8 @@ namespace Renci.SshNet.Tests.Classes.Security.Cryptography /// ///A test for P /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void PTest() { DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value @@ -115,7 +121,8 @@ namespace Renci.SshNet.Tests.Classes.Security.Cryptography /// ///A test for Q /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void QTest() { DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value @@ -127,7 +134,8 @@ namespace Renci.SshNet.Tests.Classes.Security.Cryptography /// ///A test for X /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void XTest() { DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value @@ -139,7 +147,8 @@ namespace Renci.SshNet.Tests.Classes.Security.Cryptography /// ///A test for Y /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void YTest() { DsaKey target = new DsaKey(); // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/Security/KeyExchangeDiffieHellmanGroup1Sha1Test.cs b/src/Renci.SshNet.Tests/Classes/Security/KeyExchangeDiffieHellmanGroup1Sha1Test.cs index a06f8760..150f27c8 100644 --- a/src/Renci.SshNet.Tests/Classes/Security/KeyExchangeDiffieHellmanGroup1Sha1Test.cs +++ b/src/Renci.SshNet.Tests/Classes/Security/KeyExchangeDiffieHellmanGroup1Sha1Test.cs @@ -9,13 +9,14 @@ namespace Renci.SshNet.Tests.Classes.Security ///This is a test class for KeyExchangeDiffieHellmanGroup1Sha1Test and is intended ///to contain all KeyExchangeDiffieHellmanGroup1Sha1Test Unit Tests /// - [TestClass()] + [TestClass] public class KeyExchangeDiffieHellmanGroup1Sha1Test : TestBase { /// ///A test for KeyExchangeDiffieHellmanGroup1Sha1 Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void KeyExchangeDiffieHellmanGroup1Sha1ConstructorTest() { KeyExchangeDiffieHellmanGroup1Sha1 target = new KeyExchangeDiffieHellmanGroup1Sha1(); @@ -25,7 +26,8 @@ namespace Renci.SshNet.Tests.Classes.Security /// ///A test for GroupPrime /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void GroupPrimeTest() { KeyExchangeDiffieHellmanGroup1Sha1 target = new KeyExchangeDiffieHellmanGroup1Sha1(); // TODO: Initialize to an appropriate value @@ -37,7 +39,8 @@ namespace Renci.SshNet.Tests.Classes.Security /// ///A test for Name /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void NameTest() { KeyExchangeDiffieHellmanGroup1Sha1 target = new KeyExchangeDiffieHellmanGroup1Sha1(); // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/Security/KeyExchangeDiffieHellmanGroupExchangeSha256Test.cs b/src/Renci.SshNet.Tests/Classes/Security/KeyExchangeDiffieHellmanGroupExchangeSha256Test.cs index d6b5cfef..5a0baf35 100644 --- a/src/Renci.SshNet.Tests/Classes/Security/KeyExchangeDiffieHellmanGroupExchangeSha256Test.cs +++ b/src/Renci.SshNet.Tests/Classes/Security/KeyExchangeDiffieHellmanGroupExchangeSha256Test.cs @@ -9,13 +9,14 @@ namespace Renci.SshNet.Tests.Classes.Security ///This is a test class for KeyExchangeDiffieHellmanGroupExchangeSha256Test and is intended ///to contain all KeyExchangeDiffieHellmanGroupExchangeSha256Test Unit Tests /// - [TestClass()] + [TestClass] public class KeyExchangeDiffieHellmanGroupExchangeSha256Test : TestBase { /// ///A test for KeyExchangeDiffieHellmanGroupExchangeSha256 Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void KeyExchangeDiffieHellmanGroupExchangeSha256ConstructorTest() { KeyExchangeDiffieHellmanGroupExchangeSha256 target = new KeyExchangeDiffieHellmanGroupExchangeSha256(); @@ -51,7 +52,8 @@ namespace Renci.SshNet.Tests.Classes.Security /// ///A test for Name /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder for actual test public void NameTest() { KeyExchangeDiffieHellmanGroupExchangeSha256 target = new KeyExchangeDiffieHellmanGroupExchangeSha256(); // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/Sftp/SftpDownloadAsyncResultTest.cs b/src/Renci.SshNet.Tests/Classes/Sftp/SftpDownloadAsyncResultTest.cs index eb978638..8aa00521 100644 --- a/src/Renci.SshNet.Tests/Classes/Sftp/SftpDownloadAsyncResultTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Sftp/SftpDownloadAsyncResultTest.cs @@ -9,13 +9,14 @@ namespace Renci.SshNet.Tests.Classes.Sftp ///This is a test class for SftpDownloadAsyncResultTest and is intended ///to contain all SftpDownloadAsyncResultTest Unit Tests /// - [TestClass()] + [TestClass] public class SftpDownloadAsyncResultTest : TestBase { /// ///A test for SftpDownloadAsyncResult Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void SftpDownloadAsyncResultConstructorTest() { AsyncCallback asyncCallback = null; // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/Sftp/SftpFileSystemInformationTest.cs b/src/Renci.SshNet.Tests/Classes/Sftp/SftpFileSystemInformationTest.cs index 778302fc..22262af7 100644 --- a/src/Renci.SshNet.Tests/Classes/Sftp/SftpFileSystemInformationTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Sftp/SftpFileSystemInformationTest.cs @@ -8,13 +8,14 @@ namespace Renci.SshNet.Tests.Classes.Sftp ///This is a test class for SftpFileSytemInformationTest and is intended ///to contain all SftpFileSytemInformationTest Unit Tests /// - [TestClass()] + [TestClass] public class SftpFileSystemInformationTest : TestBase { /// ///A test for IsReadOnly /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void IsReadOnlyTest() { ulong bsize = 0; // TODO: Initialize to an appropriate value @@ -37,7 +38,8 @@ namespace Renci.SshNet.Tests.Classes.Sftp /// ///A test for SupportsSetUid /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void SupportsSetUidTest() { ulong bsize = 0; // TODO: Initialize to an appropriate value diff --git a/src/Renci.SshNet.Tests/Classes/Sftp/SftpSynchronizeDirectoriesAsyncResultTest.cs b/src/Renci.SshNet.Tests/Classes/Sftp/SftpSynchronizeDirectoriesAsyncResultTest.cs index 2a98c973..a2230ea0 100644 --- a/src/Renci.SshNet.Tests/Classes/Sftp/SftpSynchronizeDirectoriesAsyncResultTest.cs +++ b/src/Renci.SshNet.Tests/Classes/Sftp/SftpSynchronizeDirectoriesAsyncResultTest.cs @@ -9,13 +9,14 @@ namespace Renci.SshNet.Tests.Classes.Sftp ///This is a test class for SftpSynchronizeDirectoriesAsyncResultTest and is intended ///to contain all SftpSynchronizeDirectoriesAsyncResultTest Unit Tests /// - [TestClass()] + [TestClass] public class SftpSynchronizeDirectoriesAsyncResultTest : TestBase { /// ///A test for SftpSynchronizeDirectoriesAsyncResult Constructor /// - [TestMethod()] + [TestMethod] + [Ignore] // placeholder public void SftpSynchronizeDirectoriesAsyncResultConstructorTest() { AsyncCallback asyncCallback = null; // TODO: Initialize to an appropriate value