浏览代码

Cleanup code.

Gert Driesen 8 年之前
父节点
当前提交
f08d7a61f1
共有 30 个文件被更改,包括 166 次插入232 次删除
  1. 0 2
      src/Renci.SshNet.Tests/Classes/Channels/ChannelDirectTcpipTest_Dispose_SessionIsConnectedAndChannelIsOpen.cs
  2. 11 11
      src/Renci.SshNet.Tests/Classes/Common/AsyncResultTest.cs
  3. 4 5
      src/Renci.SshNet.Tests/Classes/Common/AuthenticationBannerEventArgsTest.cs
  4. 5 6
      src/Renci.SshNet.Tests/Classes/Common/AuthenticationPasswordChangeEventArgsTest.cs
  5. 4 5
      src/Renci.SshNet.Tests/Classes/Common/AuthenticationPromptEventArgsTest.cs
  6. 5 6
      src/Renci.SshNet.Tests/Classes/Common/AuthenticationPromptTest.cs
  7. 11 12
      src/Renci.SshNet.Tests/Classes/Common/BigIntegerTest.cs
  8. 16 17
      src/Renci.SshNet.Tests/Classes/Common/DerDataTest.cs
  9. 4 4
      src/Renci.SshNet.Tests/Classes/Common/ExceptionEventArgsTest.cs
  10. 5 5
      src/Renci.SshNet.Tests/Classes/Common/HostKeyEventArgsTest.cs
  11. 6 6
      src/Renci.SshNet.Tests/Classes/Common/NetConfServerExceptionTest.cs
  12. 4 5
      src/Renci.SshNet.Tests/Classes/Common/ObjectIdentifierTest.cs
  13. 3 3
      src/Renci.SshNet.Tests/Classes/Common/PipeStreamTest.cs
  14. 3 3
      src/Renci.SshNet.Tests/Classes/Common/PortForwardEventArgsTest.cs
  15. 6 6
      src/Renci.SshNet.Tests/Classes/Common/ProxyExceptionTest.cs
  16. 4 5
      src/Renci.SshNet.Tests/Classes/Common/ScpDownloadEventArgsTest.cs
  17. 6 6
      src/Renci.SshNet.Tests/Classes/Common/ScpExceptionTest.cs
  18. 4 5
      src/Renci.SshNet.Tests/Classes/Common/ScpUploadEventArgsTest.cs
  19. 9 9
      src/Renci.SshNet.Tests/Classes/Common/SemaphoreLightTest.cs
  20. 6 6
      src/Renci.SshNet.Tests/Classes/Common/SftpPathNotFoundExceptionTest.cs
  21. 6 6
      src/Renci.SshNet.Tests/Classes/Common/SftpPermissionDeniedExceptionTest.cs
  22. 5 6
      src/Renci.SshNet.Tests/Classes/Common/ShellDataEventArgsTest.cs
  23. 6 6
      src/Renci.SshNet.Tests/Classes/Common/SshAuthenticationExceptionTest.cs
  24. 9 9
      src/Renci.SshNet.Tests/Classes/Common/SshConnectionExceptionTest.cs
  25. 0 55
      src/Renci.SshNet.Tests/Classes/Common/SshDataTest.cs
  26. 8 8
      src/Renci.SshNet.Tests/Classes/Common/SshExceptionTest.cs
  27. 6 6
      src/Renci.SshNet.Tests/Classes/Common/SshOperationTimeoutExceptionTest.cs
  28. 6 6
      src/Renci.SshNet.Tests/Classes/Common/SshPassPhraseNullOrEmptyExceptionTest.cs
  29. 2 2
      src/Renci.SshNet.Tests/Classes/ScpClientTest_Upload_FileInfoAndPath_SendExecRequestReturnsFalse.cs
  30. 2 1
      src/Renci.SshNet/Abstractions/ReflectionAbstraction.cs

+ 0 - 2
src/Renci.SshNet.Tests/Classes/Channels/ChannelDirectTcpipTest_Dispose_SessionIsConnectedAndChannelIsOpen.cs

@@ -16,7 +16,6 @@ namespace Renci.SshNet.Tests.Classes.Channels
     {
     {
         private Mock<ISession> _sessionMock;
         private Mock<ISession> _sessionMock;
         private Mock<IForwardedPort> _forwardedPortMock;
         private Mock<IForwardedPort> _forwardedPortMock;
-        private Mock<IConnectionInfo> _connectionInfoMock;
         private ChannelDirectTcpip _channel;
         private ChannelDirectTcpip _channel;
         private uint _localChannelNumber;
         private uint _localChannelNumber;
         private uint _localWindowSize;
         private uint _localWindowSize;
@@ -73,7 +72,6 @@ namespace Renci.SshNet.Tests.Classes.Channels
 
 
             _sessionMock = new Mock<ISession>(MockBehavior.Strict);
             _sessionMock = new Mock<ISession>(MockBehavior.Strict);
             _forwardedPortMock = new Mock<IForwardedPort>(MockBehavior.Strict);
             _forwardedPortMock = new Mock<IForwardedPort>(MockBehavior.Strict);
-            _connectionInfoMock = new Mock<IConnectionInfo>(MockBehavior.Strict);
 
 
             var sequence = new MockSequence();
             var sequence = new MockSequence();
             _sessionMock.InSequence(sequence).Setup(p => p.IsConnected).Returns(true);
             _sessionMock.InSequence(sequence).Setup(p => p.IsConnected).Returns(true);

+ 11 - 11
src/Renci.SshNet.Tests/Classes/Common/AsyncResultTest.cs

@@ -1,7 +1,7 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using System;
 using System.Threading;
 using System.Threading;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -34,7 +34,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             return target;
             return target;
         }
         }
 
 
-        [TestMethod()]
+        [TestMethod]
         public void EndInvokeTest1()
         public void EndInvokeTest1()
         {
         {
             EndInvokeTest1Helper<GenericParameterHelper>();
             EndInvokeTest1Helper<GenericParameterHelper>();
@@ -52,7 +52,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             Assert.Inconclusive("A method that does not return a value cannot be verified.");
             Assert.Inconclusive("A method that does not return a value cannot be verified.");
         }
         }
 
 
-        [TestMethod()]
+        [TestMethod]
         public void SetAsCompletedTest1()
         public void SetAsCompletedTest1()
         {
         {
             SetAsCompletedTest1Helper<GenericParameterHelper>();
             SetAsCompletedTest1Helper<GenericParameterHelper>();
@@ -68,7 +68,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for EndInvoke
         ///A test for EndInvoke
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void EndInvokeTest()
         public void EndInvokeTest()
         {
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -79,7 +79,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SetAsCompleted
         ///A test for SetAsCompleted
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SetAsCompletedTest()
         public void SetAsCompletedTest()
         {
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -92,7 +92,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for AsyncState
         ///A test for AsyncState
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AsyncStateTest()
         public void AsyncStateTest()
         {
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -104,7 +104,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for AsyncWaitHandle
         ///A test for AsyncWaitHandle
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AsyncWaitHandleTest()
         public void AsyncWaitHandleTest()
         {
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -116,7 +116,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for CompletedSynchronously
         ///A test for CompletedSynchronously
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void CompletedSynchronouslyTest()
         public void CompletedSynchronouslyTest()
         {
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -128,7 +128,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for IsCompleted
         ///A test for IsCompleted
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void IsCompletedTest()
         public void IsCompletedTest()
         {
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value

+ 4 - 5
src/Renci.SshNet.Tests/Classes/Common/AuthenticationBannerEventArgsTest.cs

@@ -1,6 +1,5 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -11,13 +10,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for AuthenticationBannerEventArgsTest and is intended
     ///This is a test class for AuthenticationBannerEventArgsTest and is intended
     ///to contain all AuthenticationBannerEventArgsTest Unit Tests
     ///to contain all AuthenticationBannerEventArgsTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class AuthenticationBannerEventArgsTest : TestBase
     public class AuthenticationBannerEventArgsTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for AuthenticationBannerEventArgs Constructor
         ///A test for AuthenticationBannerEventArgs Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AuthenticationBannerEventArgsConstructorTest()
         public void AuthenticationBannerEventArgsConstructorTest()
         {
         {
             string username = string.Empty; // TODO: Initialize to an appropriate value
             string username = string.Empty; // TODO: Initialize to an appropriate value

+ 5 - 6
src/Renci.SshNet.Tests/Classes/Common/AuthenticationPasswordChangeEventArgsTest.cs

@@ -1,6 +1,5 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -11,13 +10,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for AuthenticationPasswordChangeEventArgsTest and is intended
     ///This is a test class for AuthenticationPasswordChangeEventArgsTest and is intended
     ///to contain all AuthenticationPasswordChangeEventArgsTest Unit Tests
     ///to contain all AuthenticationPasswordChangeEventArgsTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class AuthenticationPasswordChangeEventArgsTest : TestBase
     public class AuthenticationPasswordChangeEventArgsTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for AuthenticationPasswordChangeEventArgs Constructor
         ///A test for AuthenticationPasswordChangeEventArgs Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AuthenticationPasswordChangeEventArgsConstructorTest()
         public void AuthenticationPasswordChangeEventArgsConstructorTest()
         {
         {
             string username = string.Empty; // TODO: Initialize to an appropriate value
             string username = string.Empty; // TODO: Initialize to an appropriate value
@@ -28,7 +27,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for NewPassword
         ///A test for NewPassword
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void NewPasswordTest()
         public void NewPasswordTest()
         {
         {
             string username = string.Empty; // TODO: Initialize to an appropriate value
             string username = string.Empty; // TODO: Initialize to an appropriate value

+ 4 - 5
src/Renci.SshNet.Tests/Classes/Common/AuthenticationPromptEventArgsTest.cs

@@ -1,7 +1,6 @@
-using Renci.SshNet.Common;
+using System.Collections.Generic;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
-using System.Collections.Generic;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -12,13 +11,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for AuthenticationPromptEventArgsTest and is intended
     ///This is a test class for AuthenticationPromptEventArgsTest and is intended
     ///to contain all AuthenticationPromptEventArgsTest Unit Tests
     ///to contain all AuthenticationPromptEventArgsTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class AuthenticationPromptEventArgsTest : TestBase
     public class AuthenticationPromptEventArgsTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for AuthenticationPromptEventArgs Constructor
         ///A test for AuthenticationPromptEventArgs Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AuthenticationPromptEventArgsConstructorTest()
         public void AuthenticationPromptEventArgsConstructorTest()
         {
         {
             string username = string.Empty; // TODO: Initialize to an appropriate value
             string username = string.Empty; // TODO: Initialize to an appropriate value

+ 5 - 6
src/Renci.SshNet.Tests/Classes/Common/AuthenticationPromptTest.cs

@@ -1,6 +1,5 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +8,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for AuthenticationPromptTest and is intended
     ///This is a test class for AuthenticationPromptTest and is intended
     ///to contain all AuthenticationPromptTest Unit Tests
     ///to contain all AuthenticationPromptTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class AuthenticationPromptTest : TestBase
     public class AuthenticationPromptTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for AuthenticationPrompt Constructor
         ///A test for AuthenticationPrompt Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AuthenticationPromptConstructorTest()
         public void AuthenticationPromptConstructorTest()
         {
         {
             int id = 0; // TODO: Initialize to an appropriate value
             int id = 0; // TODO: Initialize to an appropriate value
@@ -28,7 +27,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Response
         ///A test for Response
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ResponseTest()
         public void ResponseTest()
         {
         {
             int id = 0; // TODO: Initialize to an appropriate value
             int id = 0; // TODO: Initialize to an appropriate value

+ 11 - 12
src/Renci.SshNet.Tests/Classes/Common/BigIntegerTest.cs

@@ -16,7 +16,6 @@ using System.Globalization;
 using System.Threading;
 using System.Threading;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Renci.SshNet.Common;
 using Renci.SshNet.Common;
-using System.Text.RegularExpressions;
 #if FEATURE_NUMERICS_BIGINTEGER
 #if FEATURE_NUMERICS_BIGINTEGER
 using BigInteger = System.Numerics.BigInteger;
 using BigInteger = System.Numerics.BigInteger;
 #else
 #else
@@ -34,7 +33,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             0x1D, 0x33, 0xFB, 0xFE, 0xB1, 0x2, 0x85, 0x44, 0xCA, 0xDC, 0xFB, 0x70, 0xD, 0x39,
             0x1D, 0x33, 0xFB, 0xFE, 0xB1, 0x2, 0x85, 0x44, 0xCA, 0xDC, 0xFB, 0x70, 0xD, 0x39,
             0xB1, 0x47, 0xB6, 0xE6, 0xA2, 0xD1, 0x19, 0x1E, 0x9F, 0xE4, 0x3C, 0x1E, 0x16, 0x56, 0x13, 0x9C, 0x4D, 0xD3,
             0xB1, 0x47, 0xB6, 0xE6, 0xA2, 0xD1, 0x19, 0x1E, 0x9F, 0xE4, 0x3C, 0x1E, 0x16, 0x56, 0x13, 0x9C, 0x4D, 0xD3,
             0x5C, 0x74, 0xC9, 0xBD, 0xFA, 0x56, 0x40, 0x58, 0xAC, 0x20, 0x6B, 0x55, 0xA2, 0xD5, 0x41, 0x38, 0xA4, 0x6D,
             0x5C, 0x74, 0xC9, 0xBD, 0xFA, 0x56, 0x40, 0x58, 0xAC, 0x20, 0x6B, 0x55, 0xA2, 0xD5, 0x41, 0x38, 0xA4, 0x6D,
-            0xF6, 0x8C,
+            0xF6, 0x8C
         };
         };
 
 
         private static readonly byte[] huge_b =
         private static readonly byte[] huge_b =
@@ -42,7 +41,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             0x96, 0x5, 0xDA, 0xFE, 0x93, 0x17, 0xC1, 0x93, 0xEC, 0x2F, 0x30, 0x2D, 0x8F,
             0x96, 0x5, 0xDA, 0xFE, 0x93, 0x17, 0xC1, 0x93, 0xEC, 0x2F, 0x30, 0x2D, 0x8F,
             0x28, 0x13, 0x99, 0x70, 0xF4, 0x4C, 0x60, 0xA6, 0x49, 0x24, 0xF9, 0xB3, 0x4A, 0x41, 0x67, 0xDC, 0xDD, 0xB1,
             0x28, 0x13, 0x99, 0x70, 0xF4, 0x4C, 0x60, 0xA6, 0x49, 0x24, 0xF9, 0xB3, 0x4A, 0x41, 0x67, 0xDC, 0xDD, 0xB1,
             0xA5, 0xA6, 0xC0, 0x3D, 0x57, 0x9A, 0xCB, 0x29, 0xE2, 0x94, 0xAC, 0x6C, 0x7D, 0xEF, 0x3E, 0xC6, 0x7A, 0xC1,
             0xA5, 0xA6, 0xC0, 0x3D, 0x57, 0x9A, 0xCB, 0x29, 0xE2, 0x94, 0xAC, 0x6C, 0x7D, 0xEF, 0x3E, 0xC6, 0x7A, 0xC1,
-            0xA8, 0xC8, 0xB0, 0x20, 0x95, 0xE6, 0x4C, 0xE1, 0xE0, 0x4B, 0x49, 0xD5, 0x5A, 0xB7,
+            0xA8, 0xC8, 0xB0, 0x20, 0x95, 0xE6, 0x4C, 0xE1, 0xE0, 0x4B, 0x49, 0xD5, 0x5A, 0xB7
         };
         };
 
 
         private static readonly byte[] huge_add =
         private static readonly byte[] huge_add =
@@ -50,7 +49,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             0xB3, 0x38, 0xD5, 0xFD, 0x45, 0x1A, 0x46, 0xD8, 0xB6, 0xC, 0x2C, 0x9E, 0x9C,
             0xB3, 0x38, 0xD5, 0xFD, 0x45, 0x1A, 0x46, 0xD8, 0xB6, 0xC, 0x2C, 0x9E, 0x9C,
             0x61, 0xC4, 0xE0, 0x26, 0xDB, 0xEF, 0x31, 0xC0, 0x67, 0xC3, 0xDD, 0xF0, 0x68, 0x57, 0xBD, 0xEF, 0x79, 0xFF,
             0x61, 0xC4, 0xE0, 0x26, 0xDB, 0xEF, 0x31, 0xC0, 0x67, 0xC3, 0xDD, 0xF0, 0x68, 0x57, 0xBD, 0xEF, 0x79, 0xFF,
             0x78, 0x3, 0x35, 0x7, 0x15, 0x95, 0x22, 0x6A, 0x3A, 0x41, 0xCD, 0xD7, 0xD2, 0x91, 0x14, 0x8, 0xB3, 0x65,
             0x78, 0x3, 0x35, 0x7, 0x15, 0x95, 0x22, 0x6A, 0x3A, 0x41, 0xCD, 0xD7, 0xD2, 0x91, 0x14, 0x8, 0xB3, 0x65,
-            0x16, 0xBF, 0x3D, 0x20, 0x95, 0xE6, 0x4C, 0xE1, 0xE0, 0x4B, 0x49, 0xD5, 0x5A, 0xB7,
+            0x16, 0xBF, 0x3D, 0x20, 0x95, 0xE6, 0x4C, 0xE1, 0xE0, 0x4B, 0x49, 0xD5, 0x5A, 0xB7
         };
         };
 
 
         private static readonly byte[] a_m_b =
         private static readonly byte[] a_m_b =
@@ -58,7 +57,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             0x87, 0x2D, 0x21, 0x0, 0x1E, 0xEB, 0xC3, 0xB0, 0xDD, 0xAC, 0xCB, 0x43, 0x7E, 0x10,
             0x87, 0x2D, 0x21, 0x0, 0x1E, 0xEB, 0xC3, 0xB0, 0xDD, 0xAC, 0xCB, 0x43, 0x7E, 0x10,
             0x9E, 0xAE, 0x45, 0xF2, 0x55, 0x71, 0x73, 0xD4, 0x7A, 0xEB, 0x88, 0xD3, 0xD4, 0xEE, 0x36, 0xBE, 0x9B, 0x2D,
             0x9E, 0xAE, 0x45, 0xF2, 0x55, 0x71, 0x73, 0xD4, 0x7A, 0xEB, 0x88, 0xD3, 0xD4, 0xEE, 0x36, 0xBE, 0x9B, 0x2D,
             0xB6, 0xB3, 0x8B, 0x66, 0x60, 0x8B, 0x16, 0x76, 0x17, 0x74, 0xFE, 0xD7, 0xB2, 0x96, 0x7B, 0xBD, 0xE2, 0xC4,
             0xB6, 0xB3, 0x8B, 0x66, 0x60, 0x8B, 0x16, 0x76, 0x17, 0x74, 0xFE, 0xD7, 0xB2, 0x96, 0x7B, 0xBD, 0xE2, 0xC4,
-            0x2D, 0xDC, 0xDE, 0x6A, 0x19, 0xB3, 0x1E, 0x1F, 0xB4, 0xB6, 0x2A, 0xA5, 0x48,
+            0x2D, 0xDC, 0xDE, 0x6A, 0x19, 0xB3, 0x1E, 0x1F, 0xB4, 0xB6, 0x2A, 0xA5, 0x48
         };
         };
 
 
         private static readonly byte[] b_m_a =
         private static readonly byte[] b_m_a =
@@ -66,7 +65,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             0x79, 0xD2, 0xDE, 0xFF, 0xE1, 0x14, 0x3C, 0x4F, 0x22, 0x53, 0x34, 0xBC, 0x81,
             0x79, 0xD2, 0xDE, 0xFF, 0xE1, 0x14, 0x3C, 0x4F, 0x22, 0x53, 0x34, 0xBC, 0x81,
             0xEF, 0x61, 0x51, 0xBA, 0xD, 0xAA, 0x8E, 0x8C, 0x2B, 0x85, 0x14, 0x77, 0x2C, 0x2B, 0x11, 0xC9, 0x41, 0x64,
             0xEF, 0x61, 0x51, 0xBA, 0xD, 0xAA, 0x8E, 0x8C, 0x2B, 0x85, 0x14, 0x77, 0x2C, 0x2B, 0x11, 0xC9, 0x41, 0x64,
             0xD2, 0x49, 0x4C, 0x74, 0x99, 0x9F, 0x74, 0xE9, 0x89, 0xE8, 0x8B, 0x1, 0x28, 0x4D, 0x69, 0x84, 0x42, 0x1D,
             0xD2, 0x49, 0x4C, 0x74, 0x99, 0x9F, 0x74, 0xE9, 0x89, 0xE8, 0x8B, 0x1, 0x28, 0x4D, 0x69, 0x84, 0x42, 0x1D,
-            0x3B, 0xD2, 0x23, 0x21, 0x95, 0xE6, 0x4C, 0xE1, 0xE0, 0x4B, 0x49, 0xD5, 0x5A, 0xB7,
+            0x3B, 0xD2, 0x23, 0x21, 0x95, 0xE6, 0x4C, 0xE1, 0xE0, 0x4B, 0x49, 0xD5, 0x5A, 0xB7
         };
         };
 
 
         private static readonly byte[] huge_mul =
         private static readonly byte[] huge_mul =
@@ -77,17 +76,17 @@ namespace Renci.SshNet.Tests.Classes.Common
             0xBC, 0xCA, 0x3E, 0x94, 0x95, 0xDA, 0x49, 0xE2, 0xA8, 0x33, 0xA2, 0x6A, 0x33, 0xB1, 0xF2, 0xEA, 0x99, 0x32,
             0xBC, 0xCA, 0x3E, 0x94, 0x95, 0xDA, 0x49, 0xE2, 0xA8, 0x33, 0xA2, 0x6A, 0x33, 0xB1, 0xF2, 0xEA, 0x99, 0x32,
             0xD0, 0xB2, 0xAE, 0x55, 0x75, 0xBD, 0x19, 0xFC, 0x9A, 0xEC, 0x54, 0x87, 0x2A, 0x6, 0xCC, 0x78, 0xDA, 0x88,
             0xD0, 0xB2, 0xAE, 0x55, 0x75, 0xBD, 0x19, 0xFC, 0x9A, 0xEC, 0x54, 0x87, 0x2A, 0x6, 0xCC, 0x78, 0xDA, 0x88,
             0xBB, 0xAB, 0xA5, 0x47, 0xEF, 0xC7, 0x2B, 0xC7, 0x5B, 0x32, 0x31, 0xCD, 0xD9, 0x53, 0x96, 0x1A, 0x9D, 0x9A,
             0xBB, 0xAB, 0xA5, 0x47, 0xEF, 0xC7, 0x2B, 0xC7, 0x5B, 0x32, 0x31, 0xCD, 0xD9, 0x53, 0x96, 0x1A, 0x9D, 0x9A,
-            0x57, 0x40, 0x51, 0xB6, 0x5D, 0xC, 0x17, 0xD1, 0x86, 0xE9, 0xA4, 0x20,
+            0x57, 0x40, 0x51, 0xB6, 0x5D, 0xC, 0x17, 0xD1, 0x86, 0xE9, 0xA4, 0x20
         };
         };
 
 
-        private static readonly byte[] huge_div = {0x0,};
+        private static readonly byte[] huge_div = {0x0};
 
 
         private static readonly byte[] huge_rem =
         private static readonly byte[] huge_rem =
         {
         {
             0x1D, 0x33, 0xFB, 0xFE, 0xB1, 0x2, 0x85, 0x44, 0xCA, 0xDC, 0xFB, 0x70, 0xD,
             0x1D, 0x33, 0xFB, 0xFE, 0xB1, 0x2, 0x85, 0x44, 0xCA, 0xDC, 0xFB, 0x70, 0xD,
             0x39, 0xB1, 0x47, 0xB6, 0xE6, 0xA2, 0xD1, 0x19, 0x1E, 0x9F, 0xE4, 0x3C, 0x1E, 0x16, 0x56, 0x13, 0x9C, 0x4D,
             0x39, 0xB1, 0x47, 0xB6, 0xE6, 0xA2, 0xD1, 0x19, 0x1E, 0x9F, 0xE4, 0x3C, 0x1E, 0x16, 0x56, 0x13, 0x9C, 0x4D,
             0xD3, 0x5C, 0x74, 0xC9, 0xBD, 0xFA, 0x56, 0x40, 0x58, 0xAC, 0x20, 0x6B, 0x55, 0xA2, 0xD5, 0x41, 0x38, 0xA4,
             0xD3, 0x5C, 0x74, 0xC9, 0xBD, 0xFA, 0x56, 0x40, 0x58, 0xAC, 0x20, 0x6B, 0x55, 0xA2, 0xD5, 0x41, 0x38, 0xA4,
-            0x6D, 0xF6, 0x8C,
+            0x6D, 0xF6, 0x8C
         };
         };
         private static readonly byte[][] add_a = {new byte[] {1}, new byte[] {0xFF}, huge_a};
         private static readonly byte[][] add_a = {new byte[] {1}, new byte[] {0xFF}, huge_a};
         private static readonly byte[][] add_b = {new byte[] {1}, new byte[] {1}, huge_b};
         private static readonly byte[][] add_b = {new byte[] {1}, new byte[] {1}, huge_b};
@@ -726,7 +725,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             arr = new byte[] { 0xFF, 00 };
             arr = new byte[] { 0xFF, 00 };
             AssertEqual(arr, new BigInteger(arr).ToByteArray());
             AssertEqual(arr, new BigInteger(arr).ToByteArray());
 
 
-            arr = new byte[] { 1, 0, 0, 0, 0, 0, };
+            arr = new byte[] { 1, 0, 0, 0, 0, 0 };
             AssertEqual(new byte[] { 1 }, new BigInteger(arr).ToByteArray());
             AssertEqual(new byte[] { 1 }, new BigInteger(arr).ToByteArray());
         }
         }
 
 
@@ -927,8 +926,8 @@ namespace Renci.SshNet.Tests.Classes.Common
         [TestMethod]
         [TestMethod]
         public void ShortOperators()
         public void ShortOperators()
         {
         {
-            Assert.AreEqual(22, (int)new BigInteger((short)22), "#1");
-            Assert.AreEqual(-22, (int)new BigInteger((short)-22), "#2");
+            Assert.AreEqual(22, (int)new BigInteger(22), "#1");
+            Assert.AreEqual(-22, (int)new BigInteger(-22), "#2");
 
 
             try
             try
             {
             {

+ 16 - 17
src/Renci.SshNet.Tests/Classes/Common/DerDataTest.cs

@@ -1,6 +1,5 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,14 +8,14 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for DerDataTest and is intended
     ///This is a test class for DerDataTest and is intended
     ///to contain all DerDataTest Unit Tests
     ///to contain all DerDataTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     [Ignore] // placeholder for actual test
     [Ignore] // placeholder for actual test
     public class DerDataTest : TestBase
     public class DerDataTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for DerData Constructor
         ///A test for DerData Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void DerDataConstructorTest()
         public void DerDataConstructorTest()
         {
         {
             DerData target = new DerData();
             DerData target = new DerData();
@@ -26,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for DerData Constructor
         ///A test for DerData Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void DerDataConstructorTest1()
         public void DerDataConstructorTest1()
         {
         {
             byte[] data = null; // TODO: Initialize to an appropriate value
             byte[] data = null; // TODO: Initialize to an appropriate value
@@ -37,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Encode
         ///A test for Encode
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void EncodeTest()
         public void EncodeTest()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -51,7 +50,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for ReadBigInteger
         ///A test for ReadBigInteger
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ReadBigIntegerTest()
         public void ReadBigIntegerTest()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -65,7 +64,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for ReadInteger
         ///A test for ReadInteger
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ReadIntegerTest()
         public void ReadIntegerTest()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -79,7 +78,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Write
         ///A test for Write
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest()
         public void WriteTest()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -91,7 +90,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Write
         ///A test for Write
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest1()
         public void WriteTest1()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -103,7 +102,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Write
         ///A test for Write
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest2()
         public void WriteTest2()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -115,7 +114,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Write
         ///A test for Write
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest3()
         public void WriteTest3()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -127,7 +126,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Write
         ///A test for Write
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest4()
         public void WriteTest4()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -139,7 +138,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Write
         ///A test for Write
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest5()
         public void WriteTest5()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -151,7 +150,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for WriteNull
         ///A test for WriteNull
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteNullTest()
         public void WriteNullTest()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -162,7 +161,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for IsEndOfData
         ///A test for IsEndOfData
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void IsEndOfDataTest()
         public void IsEndOfDataTest()
         {
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
             DerData target = new DerData(); // TODO: Initialize to an appropriate value

+ 4 - 4
src/Renci.SshNet.Tests/Classes/Common/ExceptionEventArgsTest.cs

@@ -1,6 +1,6 @@
-using Renci.SshNet.Common;
+using System;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +9,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for ExceptionEventArgsTest and is intended
     ///This is a test class for ExceptionEventArgsTest and is intended
     ///to contain all ExceptionEventArgsTest Unit Tests
     ///to contain all ExceptionEventArgsTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ExceptionEventArgsTest : TestBase
     public class ExceptionEventArgsTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for ExceptionEventArgs Constructor
         ///A test for ExceptionEventArgs Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ExceptionEventArgsConstructorTest()
         public void ExceptionEventArgsConstructorTest()
         {
         {
             Exception exception = null; // TODO: Initialize to an appropriate value
             Exception exception = null; // TODO: Initialize to an appropriate value

+ 5 - 5
src/Renci.SshNet.Tests/Classes/Common/HostKeyEventArgsTest.cs

@@ -1,5 +1,5 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Security;
 using Renci.SshNet.Security;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
@@ -9,14 +9,14 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for HostKeyEventArgsTest and is intended
     ///This is a test class for HostKeyEventArgsTest and is intended
     ///to contain all HostKeyEventArgsTest Unit Tests
     ///to contain all HostKeyEventArgsTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     [Ignore] // placeholder for actual test
     [Ignore] // placeholder for actual test
     public class HostKeyEventArgsTest : TestBase
     public class HostKeyEventArgsTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for HostKeyEventArgs Constructor
         ///A test for HostKeyEventArgs Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void HostKeyEventArgsConstructorTest()
         public void HostKeyEventArgsConstructorTest()
         {
         {
             KeyHostAlgorithm host = null; // TODO: Initialize to an appropriate value
             KeyHostAlgorithm host = null; // TODO: Initialize to an appropriate value
@@ -27,7 +27,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for CanTrust
         ///A test for CanTrust
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void CanTrustTest()
         public void CanTrustTest()
         {
         {
             KeyHostAlgorithm host = null; // TODO: Initialize to an appropriate value
             KeyHostAlgorithm host = null; // TODO: Initialize to an appropriate value

+ 6 - 6
src/Renci.SshNet.Tests/Classes/Common/NetConfServerExceptionTest.cs

@@ -1,6 +1,6 @@
-using Renci.SshNet.Common;
+using System;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +9,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for NetConfServerExceptionTest and is intended
     ///This is a test class for NetConfServerExceptionTest and is intended
     ///to contain all NetConfServerExceptionTest Unit Tests
     ///to contain all NetConfServerExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class NetConfServerExceptionTest : TestBase
     public class NetConfServerExceptionTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for NetConfServerException Constructor
         ///A test for NetConfServerException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void NetConfServerExceptionConstructorTest()
         public void NetConfServerExceptionConstructorTest()
         {
         {
             NetConfServerException target = new NetConfServerException();
             NetConfServerException target = new NetConfServerException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for NetConfServerException Constructor
         ///A test for NetConfServerException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void NetConfServerExceptionConstructorTest1()
         public void NetConfServerExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for NetConfServerException Constructor
         ///A test for NetConfServerException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void NetConfServerExceptionConstructorTest2()
         public void NetConfServerExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value

+ 4 - 5
src/Renci.SshNet.Tests/Classes/Common/ObjectIdentifierTest.cs

@@ -1,6 +1,5 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,14 +8,14 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for ObjectIdentifierTest and is intended
     ///This is a test class for ObjectIdentifierTest and is intended
     ///to contain all ObjectIdentifierTest Unit Tests
     ///to contain all ObjectIdentifierTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     [Ignore] // placeholder for actual test
     [Ignore] // placeholder for actual test
     public class ObjectIdentifierTest : TestBase
     public class ObjectIdentifierTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for ObjectIdentifier Constructor
         ///A test for ObjectIdentifier Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ObjectIdentifierConstructorTest()
         public void ObjectIdentifierConstructorTest()
         {
         {
             ulong[] identifiers = null; // TODO: Initialize to an appropriate value
             ulong[] identifiers = null; // TODO: Initialize to an appropriate value

+ 3 - 3
src/Renci.SshNet.Tests/Classes/Common/PipeStreamTest.cs

@@ -1,9 +1,9 @@
-using System.Threading;
+using System;
+using System.IO;
+using System.Threading;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Renci.SshNet.Common;
 using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
-using System;
-using System.IO;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
 {
 {

+ 3 - 3
src/Renci.SshNet.Tests/Classes/Common/PortForwardEventArgsTest.cs

@@ -1,8 +1,8 @@
-using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+using System.Net;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Renci.SshNet.Common;
 using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
-using System;
-using System.Net;
 using Renci.SshNet.Tests.Properties;
 using Renci.SshNet.Tests.Properties;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common

+ 6 - 6
src/Renci.SshNet.Tests/Classes/Common/ProxyExceptionTest.cs

@@ -1,6 +1,6 @@
-using Renci.SshNet.Common;
+using System;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +9,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for ProxyExceptionTest and is intended
     ///This is a test class for ProxyExceptionTest and is intended
     ///to contain all ProxyExceptionTest Unit Tests
     ///to contain all ProxyExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ProxyExceptionTest : TestBase
     public class ProxyExceptionTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for ProxyException Constructor
         ///A test for ProxyException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ProxyExceptionConstructorTest()
         public void ProxyExceptionConstructorTest()
         {
         {
             ProxyException target = new ProxyException();
             ProxyException target = new ProxyException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for ProxyException Constructor
         ///A test for ProxyException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ProxyExceptionConstructorTest1()
         public void ProxyExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for ProxyException Constructor
         ///A test for ProxyException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ProxyExceptionConstructorTest2()
         public void ProxyExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value

+ 4 - 5
src/Renci.SshNet.Tests/Classes/Common/ScpDownloadEventArgsTest.cs

@@ -1,6 +1,5 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +8,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for ScpDownloadEventArgsTest and is intended
     ///This is a test class for ScpDownloadEventArgsTest and is intended
     ///to contain all ScpDownloadEventArgsTest Unit Tests
     ///to contain all ScpDownloadEventArgsTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ScpDownloadEventArgsTest : TestBase
     public class ScpDownloadEventArgsTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for ScpDownloadEventArgs Constructor
         ///A test for ScpDownloadEventArgs Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpDownloadEventArgsConstructorTest()
         public void ScpDownloadEventArgsConstructorTest()
         {
         {
             string filename = string.Empty; // TODO: Initialize to an appropriate value
             string filename = string.Empty; // TODO: Initialize to an appropriate value

+ 6 - 6
src/Renci.SshNet.Tests/Classes/Common/ScpExceptionTest.cs

@@ -1,6 +1,6 @@
-using Renci.SshNet.Common;
+using System;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +9,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for ScpExceptionTest and is intended
     ///This is a test class for ScpExceptionTest and is intended
     ///to contain all ScpExceptionTest Unit Tests
     ///to contain all ScpExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ScpExceptionTest : TestBase
     public class ScpExceptionTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for ScpException Constructor
         ///A test for ScpException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpExceptionConstructorTest()
         public void ScpExceptionConstructorTest()
         {
         {
             ScpException target = new ScpException();
             ScpException target = new ScpException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for ScpException Constructor
         ///A test for ScpException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpExceptionConstructorTest1()
         public void ScpExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for ScpException Constructor
         ///A test for ScpException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpExceptionConstructorTest2()
         public void ScpExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value

+ 4 - 5
src/Renci.SshNet.Tests/Classes/Common/ScpUploadEventArgsTest.cs

@@ -1,6 +1,5 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +8,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for ScpUploadEventArgsTest and is intended
     ///This is a test class for ScpUploadEventArgsTest and is intended
     ///to contain all ScpUploadEventArgsTest Unit Tests
     ///to contain all ScpUploadEventArgsTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ScpUploadEventArgsTest : TestBase
     public class ScpUploadEventArgsTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for ScpUploadEventArgs Constructor
         ///A test for ScpUploadEventArgs Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpUploadEventArgsConstructorTest()
         public void ScpUploadEventArgsConstructorTest()
         {
         {
             string filename = string.Empty; // TODO: Initialize to an appropriate value
             string filename = string.Empty; // TODO: Initialize to an appropriate value

+ 9 - 9
src/Renci.SshNet.Tests/Classes/Common/SemaphoreLightTest.cs

@@ -1,15 +1,15 @@
-using System.Threading;
-using Renci.SshNet.Common;
+using System;
+using System.Threading;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
 {
 {
-    [TestClass()]
+    [TestClass]
     public class SemaphoreLightTest : TestBase
     public class SemaphoreLightTest : TestBase
     {
     {
-        [TestMethod()]
+        [TestMethod]
         public void SemaphoreLightConstructorTest()
         public void SemaphoreLightConstructorTest()
         {
         {
             var initialCount = new Random().Next(1, 10);
             var initialCount = new Random().Next(1, 10);
@@ -17,7 +17,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             Assert.AreEqual(initialCount, target.CurrentCount);
             Assert.AreEqual(initialCount, target.CurrentCount);
         }
         }
 
 
-        [TestMethod()]
+        [TestMethod]
         public void Release()
         public void Release()
         {
         {
             var initialCount = new Random().Next(1, 10);
             var initialCount = new Random().Next(1, 10);
@@ -33,7 +33,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Release
         ///A test for Release
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void Release_ReleaseCount()
         public void Release_ReleaseCount()
         {
         {
             var initialCount = new Random().Next(1, 10);
             var initialCount = new Random().Next(1, 10);
@@ -51,7 +51,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for Wait
         ///A test for Wait
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WaitTest()
         public void WaitTest()
         {
         {
             const int sleepTime = 200; 
             const int sleepTime = 200; 
@@ -82,7 +82,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             Assert.IsTrue(elapsed.TotalMilliseconds < 250);
             Assert.IsTrue(elapsed.TotalMilliseconds < 250);
         }
         }
 
 
-        [TestMethod()]
+        [TestMethod]
         public void CurrentCountTest()
         public void CurrentCountTest()
         {
         {
             var initialCount = new Random().Next(1, 20);
             var initialCount = new Random().Next(1, 20);

+ 6 - 6
src/Renci.SshNet.Tests/Classes/Common/SftpPathNotFoundExceptionTest.cs

@@ -1,6 +1,6 @@
-using Renci.SshNet.Common;
+using System;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +9,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for SftpPathNotFoundExceptionTest and is intended
     ///This is a test class for SftpPathNotFoundExceptionTest and is intended
     ///to contain all SftpPathNotFoundExceptionTest Unit Tests
     ///to contain all SftpPathNotFoundExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SftpPathNotFoundExceptionTest : TestBase
     public class SftpPathNotFoundExceptionTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for SftpPathNotFoundException Constructor
         ///A test for SftpPathNotFoundException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPathNotFoundExceptionConstructorTest()
         public void SftpPathNotFoundExceptionConstructorTest()
         {
         {
             SftpPathNotFoundException target = new SftpPathNotFoundException();
             SftpPathNotFoundException target = new SftpPathNotFoundException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SftpPathNotFoundException Constructor
         ///A test for SftpPathNotFoundException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPathNotFoundExceptionConstructorTest1()
         public void SftpPathNotFoundExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SftpPathNotFoundException Constructor
         ///A test for SftpPathNotFoundException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPathNotFoundExceptionConstructorTest2()
         public void SftpPathNotFoundExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value

+ 6 - 6
src/Renci.SshNet.Tests/Classes/Common/SftpPermissionDeniedExceptionTest.cs

@@ -1,6 +1,6 @@
-using Renci.SshNet.Common;
+using System;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +9,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for SftpPermissionDeniedExceptionTest and is intended
     ///This is a test class for SftpPermissionDeniedExceptionTest and is intended
     ///to contain all SftpPermissionDeniedExceptionTest Unit Tests
     ///to contain all SftpPermissionDeniedExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SftpPermissionDeniedExceptionTest : TestBase
     public class SftpPermissionDeniedExceptionTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for SftpPermissionDeniedException Constructor
         ///A test for SftpPermissionDeniedException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPermissionDeniedExceptionConstructorTest()
         public void SftpPermissionDeniedExceptionConstructorTest()
         {
         {
             SftpPermissionDeniedException target = new SftpPermissionDeniedException();
             SftpPermissionDeniedException target = new SftpPermissionDeniedException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SftpPermissionDeniedException Constructor
         ///A test for SftpPermissionDeniedException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPermissionDeniedExceptionConstructorTest1()
         public void SftpPermissionDeniedExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SftpPermissionDeniedException Constructor
         ///A test for SftpPermissionDeniedException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPermissionDeniedExceptionConstructorTest2()
         public void SftpPermissionDeniedExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value

+ 5 - 6
src/Renci.SshNet.Tests/Classes/Common/ShellDataEventArgsTest.cs

@@ -1,6 +1,5 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
 {
 {
@@ -8,13 +7,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for ShellDataEventArgsTest and is intended
     ///This is a test class for ShellDataEventArgsTest and is intended
     ///to contain all ShellDataEventArgsTest Unit Tests
     ///to contain all ShellDataEventArgsTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ShellDataEventArgsTest
     public class ShellDataEventArgsTest
     {
     {
         /// <summary>
         /// <summary>
         ///A test for ShellDataEventArgs Constructor
         ///A test for ShellDataEventArgs Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ShellDataEventArgsConstructorTest()
         public void ShellDataEventArgsConstructorTest()
         {
         {
             byte[] data = null; // TODO: Initialize to an appropriate value
             byte[] data = null; // TODO: Initialize to an appropriate value
@@ -25,7 +24,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for ShellDataEventArgs Constructor
         ///A test for ShellDataEventArgs Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ShellDataEventArgsConstructorTest1()
         public void ShellDataEventArgsConstructorTest1()
         {
         {
             string line = string.Empty; // TODO: Initialize to an appropriate value
             string line = string.Empty; // TODO: Initialize to an appropriate value

+ 6 - 6
src/Renci.SshNet.Tests/Classes/Common/SshAuthenticationExceptionTest.cs

@@ -1,6 +1,6 @@
-using Renci.SshNet.Common;
+using System;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
 {
 {
@@ -8,13 +8,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for SshAuthenticationExceptionTest and is intended
     ///This is a test class for SshAuthenticationExceptionTest and is intended
     ///to contain all SshAuthenticationExceptionTest Unit Tests
     ///to contain all SshAuthenticationExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshAuthenticationExceptionTest
     public class SshAuthenticationExceptionTest
     {
     {
         /// <summary>
         /// <summary>
         ///A test for SshAuthenticationException Constructor
         ///A test for SshAuthenticationException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshAuthenticationExceptionConstructorTest()
         public void SshAuthenticationExceptionConstructorTest()
         {
         {
             SshAuthenticationException target = new SshAuthenticationException();
             SshAuthenticationException target = new SshAuthenticationException();
@@ -24,7 +24,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshAuthenticationException Constructor
         ///A test for SshAuthenticationException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshAuthenticationExceptionConstructorTest1()
         public void SshAuthenticationExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -35,7 +35,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshAuthenticationException Constructor
         ///A test for SshAuthenticationException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshAuthenticationExceptionConstructorTest2()
         public void SshAuthenticationExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value

+ 9 - 9
src/Renci.SshNet.Tests/Classes/Common/SshConnectionExceptionTest.cs

@@ -1,8 +1,8 @@
-using Renci.SshNet.Common;
+using System;
+using System.Runtime.Serialization;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Messages.Transport;
 using Renci.SshNet.Messages.Transport;
-using System.Runtime.Serialization;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -11,13 +11,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for SshConnectionExceptionTest and is intended
     ///This is a test class for SshConnectionExceptionTest and is intended
     ///to contain all SshConnectionExceptionTest Unit Tests
     ///to contain all SshConnectionExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshConnectionExceptionTest : TestBase
     public class SshConnectionExceptionTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for SshConnectionException Constructor
         ///A test for SshConnectionException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshConnectionExceptionConstructorTest()
         public void SshConnectionExceptionConstructorTest()
         {
         {
             SshConnectionException target = new SshConnectionException();
             SshConnectionException target = new SshConnectionException();
@@ -27,7 +27,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshConnectionException Constructor
         ///A test for SshConnectionException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshConnectionExceptionConstructorTest1()
         public void SshConnectionExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -38,7 +38,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshConnectionException Constructor
         ///A test for SshConnectionException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshConnectionExceptionConstructorTest2()
         public void SshConnectionExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -50,7 +50,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshConnectionException Constructor
         ///A test for SshConnectionException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshConnectionExceptionConstructorTest3()
         public void SshConnectionExceptionConstructorTest3()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -63,7 +63,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for GetObjectData
         ///A test for GetObjectData
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         [Ignore] // placeholder for actual test
         [Ignore] // placeholder for actual test
         public void GetObjectDataTest()
         public void GetObjectDataTest()
         {
         {

+ 0 - 55
src/Renci.SshNet.Tests/Classes/Common/SshDataTest.cs

@@ -95,16 +95,6 @@ namespace Renci.SshNet.Tests.Classes.Common
                 _value = value;
                 _value = value;
             }
             }
 
 
-            public new bool IsEndOfData
-            {
-                get { return base.IsEndOfData; }
-            }
-
-            public new byte ReadByte()
-            {
-                return base.ReadByte();
-            }
-
             protected override void LoadData()
             protected override void LoadData()
             {
             {
             }
             }
@@ -120,16 +110,6 @@ namespace Renci.SshNet.Tests.Classes.Common
             private uint _valueOne;
             private uint _valueOne;
             private uint _valueTwo;
             private uint _valueTwo;
 
 
-            public RequestSshData()
-            {
-            }
-
-            public RequestSshData(uint one, uint two)
-            {
-                _valueOne = one;
-                _valueTwo = two;
-            }
-
             protected override int BufferCapacity
             protected override int BufferCapacity
             {
             {
                 get
                 get
@@ -165,40 +145,5 @@ namespace Renci.SshNet.Tests.Classes.Common
                 Write(ValueTwo);
                 Write(ValueTwo);
             }
             }
         }
         }
-
-        private class ReplySshData : SshData
-        {
-            private uint _valueOne;
-
-            public ReplySshData()
-            {
-            }
-
-            protected override int BufferCapacity
-            {
-                get
-                {
-                    var capacity = base.BufferCapacity;
-                    capacity += 4; // ValueOne
-                    return capacity;
-                }
-            }
-
-            public uint ValueOne
-            {
-                get { return _valueOne; }
-                set { _valueOne = value; }
-            }
-
-            protected override void LoadData()
-            {
-                _valueOne = ReadUInt32();
-            }
-
-            protected override void SaveData()
-            {
-                Write(ValueOne);
-            }
-        }
     }
     }
 }
 }

+ 8 - 8
src/Renci.SshNet.Tests/Classes/Common/SshExceptionTest.cs

@@ -1,7 +1,7 @@
-using Renci.SshNet.Common;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using System;
 using System.Runtime.Serialization;
 using System.Runtime.Serialization;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -10,13 +10,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for SshExceptionTest and is intended
     ///This is a test class for SshExceptionTest and is intended
     ///to contain all SshExceptionTest Unit Tests
     ///to contain all SshExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshExceptionTest : TestBase
     public class SshExceptionTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for SshException Constructor
         ///A test for SshException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshExceptionConstructorTest()
         public void SshExceptionConstructorTest()
         {
         {
             SshException target = new SshException();
             SshException target = new SshException();
@@ -26,7 +26,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshException Constructor
         ///A test for SshException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshExceptionConstructorTest1()
         public void SshExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -37,7 +37,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshException Constructor
         ///A test for SshException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshExceptionConstructorTest2()
         public void SshExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -49,7 +49,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for GetObjectData
         ///A test for GetObjectData
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         [Ignore] // placeholder for actual test
         [Ignore] // placeholder for actual test
         public void GetObjectDataTest()
         public void GetObjectDataTest()
         {
         {

+ 6 - 6
src/Renci.SshNet.Tests/Classes/Common/SshOperationTimeoutExceptionTest.cs

@@ -1,6 +1,6 @@
-using Renci.SshNet.Common;
+using System;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +9,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for SshOperationTimeoutExceptionTest and is intended
     ///This is a test class for SshOperationTimeoutExceptionTest and is intended
     ///to contain all SshOperationTimeoutExceptionTest Unit Tests
     ///to contain all SshOperationTimeoutExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshOperationTimeoutExceptionTest : TestBase
     public class SshOperationTimeoutExceptionTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for SshOperationTimeoutException Constructor
         ///A test for SshOperationTimeoutException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshOperationTimeoutExceptionConstructorTest()
         public void SshOperationTimeoutExceptionConstructorTest()
         {
         {
             SshOperationTimeoutException target = new SshOperationTimeoutException();
             SshOperationTimeoutException target = new SshOperationTimeoutException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshOperationTimeoutException Constructor
         ///A test for SshOperationTimeoutException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshOperationTimeoutExceptionConstructorTest1()
         public void SshOperationTimeoutExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshOperationTimeoutException Constructor
         ///A test for SshOperationTimeoutException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshOperationTimeoutExceptionConstructorTest2()
         public void SshOperationTimeoutExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value

+ 6 - 6
src/Renci.SshNet.Tests/Classes/Common/SshPassPhraseNullOrEmptyExceptionTest.cs

@@ -1,6 +1,6 @@
-using Renci.SshNet.Common;
+using System;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
 using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 using Renci.SshNet.Tests.Common;
 
 
 namespace Renci.SshNet.Tests.Classes.Common
 namespace Renci.SshNet.Tests.Classes.Common
@@ -9,13 +9,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for SshPassPhraseNullOrEmptyExceptionTest and is intended
     ///This is a test class for SshPassPhraseNullOrEmptyExceptionTest and is intended
     ///to contain all SshPassPhraseNullOrEmptyExceptionTest Unit Tests
     ///to contain all SshPassPhraseNullOrEmptyExceptionTest Unit Tests
     ///</summary>
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshPassPhraseNullOrEmptyExceptionTest : TestBase
     public class SshPassPhraseNullOrEmptyExceptionTest : TestBase
     {
     {
         /// <summary>
         /// <summary>
         ///A test for SshPassPhraseNullOrEmptyException Constructor
         ///A test for SshPassPhraseNullOrEmptyException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshPassPhraseNullOrEmptyExceptionConstructorTest()
         public void SshPassPhraseNullOrEmptyExceptionConstructorTest()
         {
         {
             SshPassPhraseNullOrEmptyException target = new SshPassPhraseNullOrEmptyException();
             SshPassPhraseNullOrEmptyException target = new SshPassPhraseNullOrEmptyException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshPassPhraseNullOrEmptyException Constructor
         ///A test for SshPassPhraseNullOrEmptyException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshPassPhraseNullOrEmptyExceptionConstructorTest1()
         public void SshPassPhraseNullOrEmptyExceptionConstructorTest1()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         /// <summary>
         ///A test for SshPassPhraseNullOrEmptyException Constructor
         ///A test for SshPassPhraseNullOrEmptyException Constructor
         ///</summary>
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshPassPhraseNullOrEmptyExceptionConstructorTest2()
         public void SshPassPhraseNullOrEmptyExceptionConstructorTest2()
         {
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
             string message = string.Empty; // TODO: Initialize to an appropriate value

+ 2 - 2
src/Renci.SshNet.Tests/Classes/ScpClientTest_Upload_FileInfoAndPath_SendExecRequestReturnsFalse.cs

@@ -37,8 +37,8 @@ namespace Renci.SshNet.Tests.Classes
             _fileName = CreateTemporaryFile(new byte[] { 1 });
             _fileName = CreateTemporaryFile(new byte[] { 1 });
             _connectionInfo = new ConnectionInfo("host", 22, "user", new PasswordAuthenticationMethod("user", "pwd"));
             _connectionInfo = new ConnectionInfo("host", 22, "user", new PasswordAuthenticationMethod("user", "pwd"));
             _fileInfo = new FileInfo(_fileName);
             _fileInfo = new FileInfo(_fileName);
-            _path = "/home/sshnet/" + random.Next().ToString(CultureInfo.InvariantCulture);
-            _transformedPath = _path.ShellQuote();
+            _path = "/home/sshnet/" + random.Next();
+            _transformedPath = random.Next().ToString();
             _uploadingRegister = new List<ScpUploadEventArgs>();
             _uploadingRegister = new List<ScpUploadEventArgs>();
         }
         }
 
 

+ 2 - 1
src/Renci.SshNet/Abstractions/ReflectionAbstraction.cs

@@ -1,8 +1,9 @@
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
-using System.Linq;
 #if FEATURE_REFLECTION_TYPEINFO
 #if FEATURE_REFLECTION_TYPEINFO
 using System.Reflection;
 using System.Reflection;
+#else
+using System.Linq;
 #endif // FEATURE_REFLECTION_TYPEINFO
 #endif // FEATURE_REFLECTION_TYPEINFO
 
 
 namespace Renci.SshNet.Abstractions
 namespace Renci.SshNet.Abstractions