From a9d1ba340c5ce1ffc0e99dc98ccf2cb12e8702cd Mon Sep 17 00:00:00 2001 From: Kenneth_aa_cp Date: Sat, 14 May 2011 16:00:58 +0000 Subject: [PATCH] Added WorkItem property on some test relating to Issue #703 Added Visual Studio Test Meta Data File, to organize tests abit. (Not completed) --- .../Renci.SshNet.Tests/ConnectionTest.cs | 6 ++-- .../Security/TestPrivateKeyFile.cs | 4 +-- .../SshClientTests/TestSshCommand.cs | 2 +- Renci.SshClient/Renci.SshNet.sln | 5 ++- Renci.SshClient/Renci.SshNet.vsmdi | 35 +++++++++++++++++++ 5 files changed, 45 insertions(+), 7 deletions(-) create mode 100644 Renci.SshClient/Renci.SshNet.vsmdi diff --git a/Renci.SshClient/Renci.SshNet.Tests/ConnectionTest.cs b/Renci.SshClient/Renci.SshNet.Tests/ConnectionTest.cs index d7d204ec..c6bf62e5 100644 --- a/Renci.SshClient/Renci.SshNet.Tests/ConnectionTest.cs +++ b/Renci.SshClient/Renci.SshNet.Tests/ConnectionTest.cs @@ -132,21 +132,21 @@ namespace Renci.SshNet.Tests } } - [TestMethod] + [WorkItem(703), TestMethod] [ExpectedException(typeof(ArgumentNullException))] public void Test_ConnectionInfo_NullHost() { var connectionInfo = new PasswordConnectionInfo(null, null, null); } - [TestMethod] + [WorkItem(703), TestMethod] [ExpectedException(typeof(ArgumentOutOfRangeException))] public void Test_ConnectionInfo_SmallPortNumber() { var connectionInfo = new PasswordConnectionInfo(Resources.HOST, IPEndPoint.MinPort - 1, null, null); } - [TestMethod] + [WorkItem(703), TestMethod] [ExpectedException(typeof(ArgumentOutOfRangeException))] public void Test_ConnectionInfo_BigPortNumber() { diff --git a/Renci.SshClient/Renci.SshNet.Tests/Security/TestPrivateKeyFile.cs b/Renci.SshClient/Renci.SshNet.Tests/Security/TestPrivateKeyFile.cs index 4935f526..d80a8bee 100644 --- a/Renci.SshClient/Renci.SshNet.Tests/Security/TestPrivateKeyFile.cs +++ b/Renci.SshClient/Renci.SshNet.Tests/Security/TestPrivateKeyFile.cs @@ -10,7 +10,7 @@ namespace Renci.SshNet.Tests.Security [TestClass] public class TestPrivateKeyFile { - [TestMethod] + [WorkItem(703), TestMethod] [ExpectedException(typeof(ArgumentNullException))] public void Test_PrivateKeyFile_EmptyFileName() { @@ -18,7 +18,7 @@ namespace Renci.SshNet.Tests.Security var keyFile = new PrivateKeyFile(fileName); } - [TestMethod] + [WorkItem(703), TestMethod] [ExpectedException(typeof(ArgumentNullException))] public void Test_PrivateKeyFile_StreamIsNull() { diff --git a/Renci.SshClient/Renci.SshNet.Tests/SshClientTests/TestSshCommand.cs b/Renci.SshClient/Renci.SshNet.Tests/SshClientTests/TestSshCommand.cs index 4cc9c99c..25e8f8c3 100644 --- a/Renci.SshClient/Renci.SshNet.Tests/SshClientTests/TestSshCommand.cs +++ b/Renci.SshClient/Renci.SshNet.Tests/SshClientTests/TestSshCommand.cs @@ -350,7 +350,7 @@ namespace Renci.SshNet.Tests.SshClientTests } - [TestMethod] + [WorkItem(703), TestMethod] [ExpectedException(typeof(ArgumentException))] public void Test_EndExecute_Before_BeginExecute() { diff --git a/Renci.SshClient/Renci.SshNet.sln b/Renci.SshClient/Renci.SshNet.sln index 3d38054f..d5c64581 100644 --- a/Renci.SshClient/Renci.SshNet.sln +++ b/Renci.SshClient/Renci.SshNet.sln @@ -4,6 +4,9 @@ Microsoft Visual Studio Solution File, Format Version 11.00 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Renci.SshNet", "Renci.SshNet\Renci.SshNet.csproj", "{2F5F8C90-0BD1-424F-997C-7BC6280919D1}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A3063E62-89D5-43FF-AB1A-FFBECB4A1850}" + ProjectSection(SolutionItems) = preProject + Renci.SshNet.vsmdi = Renci.SshNet.vsmdi + EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Renci.SshNet.Tests", "Renci.SshNet.Tests\Renci.SshNet.Tests.csproj", "{C45379B9-17B1-4E89-BC2E-6D41726413E8}" EndProject @@ -21,7 +24,7 @@ Global SccLocalPath2 = Renci.SshNet.Tests EndGlobalSection GlobalSection(TestCaseManagementSettings) = postSolution - CategoryFile = Renci.SshClient1.vsmdi + CategoryFile = Renci.SshNet.vsmdi EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/Renci.SshClient/Renci.SshNet.vsmdi b/Renci.SshClient/Renci.SshNet.vsmdi new file mode 100644 index 00000000..7be4fdc3 --- /dev/null +++ b/Renci.SshClient/Renci.SshNet.vsmdi @@ -0,0 +1,35 @@ + + + + Tests that affect SftpClient. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file