diff --git a/Renci.SshClient/Renci.SshNet.Tests/SftpClientTests/GetTest.cs b/Renci.SshClient/Renci.SshNet.Tests/SftpClientTests/GetTest.cs index d118e6c2..0c2fa6b7 100644 --- a/Renci.SshClient/Renci.SshNet.Tests/SftpClientTests/GetTest.cs +++ b/Renci.SshClient/Renci.SshNet.Tests/SftpClientTests/GetTest.cs @@ -68,5 +68,20 @@ namespace Renci.SshNet.Tests.SftpClientTests } } + [TestMethod] + [TestCategory("Sftp")] + [Description("Test passing null to Get.")] + [ExpectedException(typeof(ArgumentNullException))] + public void Test_Get_File_Null() + { + using (var sftp = new SftpClient(Resources.HOST, Resources.USERNAME, Resources.PASSWORD)) + { + sftp.Connect(); + + var file = sftp.Get(null); + + sftp.Disconnect(); + } + } } } diff --git a/Renci.SshClient/Renci.SshNet.vsmdi b/Renci.SshClient/Renci.SshNet.vsmdi index edfd5926..366af5eb 100644 --- a/Renci.SshClient/Renci.SshNet.vsmdi +++ b/Renci.SshClient/Renci.SshNet.vsmdi @@ -3,40 +3,41 @@ Tests that affect SftpClient. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +