2
0

SftpClientTest.DeleteFile.cs 630 B

123456789101112131415161718192021222324
  1. using System;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using Renci.SshNet.Tests.Properties;
  4. namespace Renci.SshNet.Tests.Classes
  5. {
  6. /// <summary>
  7. /// Implementation of the SSH File Transfer Protocol (SFTP) over SSH.
  8. /// </summary>
  9. public partial class SftpClientTest
  10. {
  11. [TestMethod]
  12. [ExpectedException(typeof(ArgumentNullException))]
  13. public void Test_Sftp_DeleteFile_Null()
  14. {
  15. using (var sftp = new SftpClient(Resources.HOST, Resources.USERNAME, Resources.PASSWORD))
  16. {
  17. sftp.DeleteFile(null);
  18. }
  19. }
  20. }
  21. }