SshConnectionExceptionTest.cs 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using Renci.SshNet.Common;
  4. using Renci.SshNet.Messages.Transport;
  5. using Renci.SshNet.Tests.Common;
  6. namespace Renci.SshNet.Tests.Classes.Common
  7. {
  8. /// <summary>
  9. ///This is a test class for SshConnectionExceptionTest and is intended
  10. ///to contain all SshConnectionExceptionTest Unit Tests
  11. ///</summary>
  12. [TestClass]
  13. public class SshConnectionExceptionTest : TestBase
  14. {
  15. /// <summary>
  16. ///A test for SshConnectionException Constructor
  17. ///</summary>
  18. [TestMethod]
  19. public void SshConnectionExceptionConstructorTest()
  20. {
  21. var target = new SshConnectionException();
  22. Assert.Inconclusive("TODO: Implement code to verify target");
  23. }
  24. /// <summary>
  25. ///A test for SshConnectionException Constructor
  26. ///</summary>
  27. [TestMethod]
  28. public void SshConnectionExceptionConstructorTest1()
  29. {
  30. var message = string.Empty; // TODO: Initialize to an appropriate value
  31. var target = new SshConnectionException(message);
  32. Assert.Inconclusive("TODO: Implement code to verify target");
  33. }
  34. /// <summary>
  35. ///A test for SshConnectionException Constructor
  36. ///</summary>
  37. [TestMethod]
  38. public void SshConnectionExceptionConstructorTest2()
  39. {
  40. var message = string.Empty; // TODO: Initialize to an appropriate value
  41. var disconnectReasonCode = new DisconnectReason(); // TODO: Initialize to an appropriate value
  42. var target = new SshConnectionException(message, disconnectReasonCode);
  43. Assert.Inconclusive("TODO: Implement code to verify target");
  44. }
  45. /// <summary>
  46. ///A test for SshConnectionException Constructor
  47. ///</summary>
  48. [TestMethod]
  49. public void SshConnectionExceptionConstructorTest3()
  50. {
  51. var message = string.Empty; // TODO: Initialize to an appropriate value
  52. var disconnectReasonCode = new DisconnectReason(); // TODO: Initialize to an appropriate value
  53. Exception inner = null; // TODO: Initialize to an appropriate value
  54. var target = new SshConnectionException(message, disconnectReasonCode, inner);
  55. Assert.Inconclusive("TODO: Implement code to verify target");
  56. }
  57. }
  58. }