Bläddra i källkod

Cleanup code.

Gert Driesen 8 år sedan
förälder
incheckning
f08d7a61f1
30 ändrade filer med 166 tillägg och 232 borttagningar
  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<IForwardedPort> _forwardedPortMock;
-        private Mock<IConnectionInfo> _connectionInfoMock;
         private ChannelDirectTcpip _channel;
         private uint _localChannelNumber;
         private uint _localWindowSize;
@@ -73,7 +72,6 @@ namespace Renci.SshNet.Tests.Classes.Channels
 
             _sessionMock = new Mock<ISession>(MockBehavior.Strict);
             _forwardedPortMock = new Mock<IForwardedPort>(MockBehavior.Strict);
-            _connectionInfoMock = new Mock<IConnectionInfo>(MockBehavior.Strict);
 
             var sequence = new MockSequence();
             _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 Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 
 namespace Renci.SshNet.Tests.Classes.Common
@@ -34,7 +34,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             return target;
         }
 
-        [TestMethod()]
+        [TestMethod]
         public void EndInvokeTest1()
         {
             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.");
         }
 
-        [TestMethod()]
+        [TestMethod]
         public void SetAsCompletedTest1()
         {
             SetAsCompletedTest1Helper<GenericParameterHelper>();
@@ -68,7 +68,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for EndInvoke
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void EndInvokeTest()
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -79,7 +79,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SetAsCompleted
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SetAsCompletedTest()
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -92,7 +92,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for AsyncState
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AsyncStateTest()
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -104,7 +104,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for AsyncWaitHandle
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AsyncWaitHandleTest()
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -116,7 +116,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for CompletedSynchronously
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void CompletedSynchronouslyTest()
         {
             AsyncResult target = CreateAsyncResult(); // TODO: Initialize to an appropriate value
@@ -128,7 +128,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for IsCompleted
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void IsCompletedTest()
         {
             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;
 
 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
     ///to contain all AuthenticationBannerEventArgsTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class AuthenticationBannerEventArgsTest : TestBase
     {
         /// <summary>
         ///A test for AuthenticationBannerEventArgs Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AuthenticationBannerEventArgsConstructorTest()
         {
             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;
 
 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
     ///to contain all AuthenticationPasswordChangeEventArgsTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class AuthenticationPasswordChangeEventArgsTest : TestBase
     {
         /// <summary>
         ///A test for AuthenticationPasswordChangeEventArgs Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AuthenticationPasswordChangeEventArgsConstructorTest()
         {
             string username = string.Empty; // TODO: Initialize to an appropriate value
@@ -28,7 +27,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for NewPassword
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void NewPasswordTest()
         {
             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 System;
-using System.Collections.Generic;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all AuthenticationPromptEventArgsTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class AuthenticationPromptEventArgsTest : TestBase
     {
         /// <summary>
         ///A test for AuthenticationPromptEventArgs Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AuthenticationPromptEventArgsConstructorTest()
         {
             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;
 
 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
     ///to contain all AuthenticationPromptTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class AuthenticationPromptTest : TestBase
     {
         /// <summary>
         ///A test for AuthenticationPrompt Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void AuthenticationPromptConstructorTest()
         {
             int id = 0; // TODO: Initialize to an appropriate value
@@ -28,7 +27,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Response
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ResponseTest()
         {
             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 Microsoft.VisualStudio.TestTools.UnitTesting;
 using Renci.SshNet.Common;
-using System.Text.RegularExpressions;
 #if FEATURE_NUMERICS_BIGINTEGER
 using BigInteger = System.Numerics.BigInteger;
 #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,
             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,
-            0xF6, 0x8C,
+            0xF6, 0x8C
         };
 
         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,
             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,
-            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 =
@@ -50,7 +49,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             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,
             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 =
@@ -58,7 +57,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             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,
             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 =
@@ -66,7 +65,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             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,
             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 =
@@ -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,
             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,
-            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 =
         {
             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, 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_b = {new byte[] {1}, new byte[] {1}, huge_b};
@@ -726,7 +725,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             arr = new byte[] { 0xFF, 00 };
             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());
         }
 
@@ -927,8 +926,8 @@ namespace Renci.SshNet.Tests.Classes.Common
         [TestMethod]
         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
             {

+ 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;
 
 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
     ///to contain all DerDataTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     [Ignore] // placeholder for actual test
     public class DerDataTest : TestBase
     {
         /// <summary>
         ///A test for DerData Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void DerDataConstructorTest()
         {
             DerData target = new DerData();
@@ -26,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for DerData Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void DerDataConstructorTest1()
         {
             byte[] data = null; // TODO: Initialize to an appropriate value
@@ -37,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Encode
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void EncodeTest()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -51,7 +50,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for ReadBigInteger
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ReadBigIntegerTest()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -65,7 +64,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for ReadInteger
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ReadIntegerTest()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -79,7 +78,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Write
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -91,7 +90,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Write
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest1()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -103,7 +102,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Write
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest2()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -115,7 +114,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Write
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest3()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -127,7 +126,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Write
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest4()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -139,7 +138,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Write
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteTest5()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -151,7 +150,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for WriteNull
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WriteNullTest()
         {
             DerData target = new DerData(); // TODO: Initialize to an appropriate value
@@ -162,7 +161,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for IsEndOfData
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void IsEndOfDataTest()
         {
             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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all ExceptionEventArgsTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ExceptionEventArgsTest : TestBase
     {
         /// <summary>
         ///A test for ExceptionEventArgs Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ExceptionEventArgsConstructorTest()
         {
             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.Tests.Common;
 
@@ -9,14 +9,14 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for HostKeyEventArgsTest and is intended
     ///to contain all HostKeyEventArgsTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     [Ignore] // placeholder for actual test
     public class HostKeyEventArgsTest : TestBase
     {
         /// <summary>
         ///A test for HostKeyEventArgs Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void HostKeyEventArgsConstructorTest()
         {
             KeyHostAlgorithm host = null; // TODO: Initialize to an appropriate value
@@ -27,7 +27,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for CanTrust
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void CanTrustTest()
         {
             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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all NetConfServerExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class NetConfServerExceptionTest : TestBase
     {
         /// <summary>
         ///A test for NetConfServerException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void NetConfServerExceptionConstructorTest()
         {
             NetConfServerException target = new NetConfServerException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for NetConfServerException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void NetConfServerExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for NetConfServerException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void NetConfServerExceptionConstructorTest2()
         {
             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;
 
 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
     ///to contain all ObjectIdentifierTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     [Ignore] // placeholder for actual test
     public class ObjectIdentifierTest : TestBase
     {
         /// <summary>
         ///A test for ObjectIdentifier Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ObjectIdentifierConstructorTest()
         {
             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 Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
-using System;
-using System.IO;
 
 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.Tests.Common;
-using System;
-using System.Net;
 using Renci.SshNet.Tests.Properties;
 
 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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all ProxyExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ProxyExceptionTest : TestBase
     {
         /// <summary>
         ///A test for ProxyException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ProxyExceptionConstructorTest()
         {
             ProxyException target = new ProxyException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for ProxyException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ProxyExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for ProxyException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ProxyExceptionConstructorTest2()
         {
             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;
 
 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
     ///to contain all ScpDownloadEventArgsTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ScpDownloadEventArgsTest : TestBase
     {
         /// <summary>
         ///A test for ScpDownloadEventArgs Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpDownloadEventArgsConstructorTest()
         {
             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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all ScpExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ScpExceptionTest : TestBase
     {
         /// <summary>
         ///A test for ScpException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpExceptionConstructorTest()
         {
             ScpException target = new ScpException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for ScpException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for ScpException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpExceptionConstructorTest2()
         {
             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;
 
 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
     ///to contain all ScpUploadEventArgsTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ScpUploadEventArgsTest : TestBase
     {
         /// <summary>
         ///A test for ScpUploadEventArgs Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ScpUploadEventArgsConstructorTest()
         {
             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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.Common;
 
 namespace Renci.SshNet.Tests.Classes.Common
 {
-    [TestClass()]
+    [TestClass]
     public class SemaphoreLightTest : TestBase
     {
-        [TestMethod()]
+        [TestMethod]
         public void SemaphoreLightConstructorTest()
         {
             var initialCount = new Random().Next(1, 10);
@@ -17,7 +17,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             Assert.AreEqual(initialCount, target.CurrentCount);
         }
 
-        [TestMethod()]
+        [TestMethod]
         public void Release()
         {
             var initialCount = new Random().Next(1, 10);
@@ -33,7 +33,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Release
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void Release_ReleaseCount()
         {
             var initialCount = new Random().Next(1, 10);
@@ -51,7 +51,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for Wait
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void WaitTest()
         {
             const int sleepTime = 200; 
@@ -82,7 +82,7 @@ namespace Renci.SshNet.Tests.Classes.Common
             Assert.IsTrue(elapsed.TotalMilliseconds < 250);
         }
 
-        [TestMethod()]
+        [TestMethod]
         public void CurrentCountTest()
         {
             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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all SftpPathNotFoundExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SftpPathNotFoundExceptionTest : TestBase
     {
         /// <summary>
         ///A test for SftpPathNotFoundException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPathNotFoundExceptionConstructorTest()
         {
             SftpPathNotFoundException target = new SftpPathNotFoundException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SftpPathNotFoundException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPathNotFoundExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SftpPathNotFoundException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPathNotFoundExceptionConstructorTest2()
         {
             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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all SftpPermissionDeniedExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SftpPermissionDeniedExceptionTest : TestBase
     {
         /// <summary>
         ///A test for SftpPermissionDeniedException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPermissionDeniedExceptionConstructorTest()
         {
             SftpPermissionDeniedException target = new SftpPermissionDeniedException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SftpPermissionDeniedException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPermissionDeniedExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SftpPermissionDeniedException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SftpPermissionDeniedExceptionConstructorTest2()
         {
             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
 {
@@ -8,13 +7,13 @@ namespace Renci.SshNet.Tests.Classes.Common
     ///This is a test class for ShellDataEventArgsTest and is intended
     ///to contain all ShellDataEventArgsTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class ShellDataEventArgsTest
     {
         /// <summary>
         ///A test for ShellDataEventArgs Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ShellDataEventArgsConstructorTest()
         {
             byte[] data = null; // TODO: Initialize to an appropriate value
@@ -25,7 +24,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for ShellDataEventArgs Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void ShellDataEventArgsConstructorTest1()
         {
             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 System;
+using Renci.SshNet.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
     ///to contain all SshAuthenticationExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshAuthenticationExceptionTest
     {
         /// <summary>
         ///A test for SshAuthenticationException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshAuthenticationExceptionConstructorTest()
         {
             SshAuthenticationException target = new SshAuthenticationException();
@@ -24,7 +24,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshAuthenticationException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshAuthenticationExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -35,7 +35,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshAuthenticationException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshAuthenticationExceptionConstructorTest2()
         {
             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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Messages.Transport;
-using System.Runtime.Serialization;
 using Renci.SshNet.Tests.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
     ///to contain all SshConnectionExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshConnectionExceptionTest : TestBase
     {
         /// <summary>
         ///A test for SshConnectionException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshConnectionExceptionConstructorTest()
         {
             SshConnectionException target = new SshConnectionException();
@@ -27,7 +27,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshConnectionException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshConnectionExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -38,7 +38,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshConnectionException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshConnectionExceptionConstructorTest2()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -50,7 +50,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshConnectionException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshConnectionExceptionConstructorTest3()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -63,7 +63,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for GetObjectData
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         [Ignore] // placeholder for actual test
         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;
             }
 
-            public new bool IsEndOfData
-            {
-                get { return base.IsEndOfData; }
-            }
-
-            public new byte ReadByte()
-            {
-                return base.ReadByte();
-            }
-
             protected override void LoadData()
             {
             }
@@ -120,16 +110,6 @@ namespace Renci.SshNet.Tests.Classes.Common
             private uint _valueOne;
             private uint _valueTwo;
 
-            public RequestSshData()
-            {
-            }
-
-            public RequestSshData(uint one, uint two)
-            {
-                _valueOne = one;
-                _valueTwo = two;
-            }
-
             protected override int BufferCapacity
             {
                 get
@@ -165,40 +145,5 @@ namespace Renci.SshNet.Tests.Classes.Common
                 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 Microsoft.VisualStudio.TestTools.UnitTesting;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all SshExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshExceptionTest : TestBase
     {
         /// <summary>
         ///A test for SshException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshExceptionConstructorTest()
         {
             SshException target = new SshException();
@@ -26,7 +26,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -37,7 +37,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshExceptionConstructorTest2()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -49,7 +49,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for GetObjectData
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         [Ignore] // placeholder for actual test
         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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all SshOperationTimeoutExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshOperationTimeoutExceptionTest : TestBase
     {
         /// <summary>
         ///A test for SshOperationTimeoutException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshOperationTimeoutExceptionConstructorTest()
         {
             SshOperationTimeoutException target = new SshOperationTimeoutException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshOperationTimeoutException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshOperationTimeoutExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshOperationTimeoutException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshOperationTimeoutExceptionConstructorTest2()
         {
             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 System;
+using Renci.SshNet.Common;
 using Renci.SshNet.Tests.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
     ///to contain all SshPassPhraseNullOrEmptyExceptionTest Unit Tests
     ///</summary>
-    [TestClass()]
+    [TestClass]
     public class SshPassPhraseNullOrEmptyExceptionTest : TestBase
     {
         /// <summary>
         ///A test for SshPassPhraseNullOrEmptyException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshPassPhraseNullOrEmptyExceptionConstructorTest()
         {
             SshPassPhraseNullOrEmptyException target = new SshPassPhraseNullOrEmptyException();
@@ -25,7 +25,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshPassPhraseNullOrEmptyException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshPassPhraseNullOrEmptyExceptionConstructorTest1()
         {
             string message = string.Empty; // TODO: Initialize to an appropriate value
@@ -36,7 +36,7 @@ namespace Renci.SshNet.Tests.Classes.Common
         /// <summary>
         ///A test for SshPassPhraseNullOrEmptyException Constructor
         ///</summary>
-        [TestMethod()]
+        [TestMethod]
         public void SshPassPhraseNullOrEmptyExceptionConstructorTest2()
         {
             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 });
             _connectionInfo = new ConnectionInfo("host", 22, "user", new PasswordAuthenticationMethod("user", "pwd"));
             _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>();
         }
 

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

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