SshExceptionTest.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using Renci.SshNet.Common;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using System;
  4. using System.Runtime.Serialization;
  5. using Renci.SshNet.Tests.Common;
  6. namespace Renci.SshNet.Tests.Classes.Common
  7. {
  8. /// <summary>
  9. ///This is a test class for SshExceptionTest and is intended
  10. ///to contain all SshExceptionTest Unit Tests
  11. ///</summary>
  12. [TestClass()]
  13. public class SshExceptionTest : TestBase
  14. {
  15. /// <summary>
  16. ///A test for SshException Constructor
  17. ///</summary>
  18. [TestMethod()]
  19. public void SshExceptionConstructorTest()
  20. {
  21. SshException target = new SshException();
  22. Assert.Inconclusive("TODO: Implement code to verify target");
  23. }
  24. /// <summary>
  25. ///A test for SshException Constructor
  26. ///</summary>
  27. [TestMethod()]
  28. public void SshExceptionConstructorTest1()
  29. {
  30. string message = string.Empty; // TODO: Initialize to an appropriate value
  31. SshException target = new SshException(message);
  32. Assert.Inconclusive("TODO: Implement code to verify target");
  33. }
  34. /// <summary>
  35. ///A test for SshException Constructor
  36. ///</summary>
  37. [TestMethod()]
  38. public void SshExceptionConstructorTest2()
  39. {
  40. string message = string.Empty; // TODO: Initialize to an appropriate value
  41. Exception inner = null; // TODO: Initialize to an appropriate value
  42. SshException target = new SshException(message, inner);
  43. Assert.Inconclusive("TODO: Implement code to verify target");
  44. }
  45. /// <summary>
  46. ///A test for GetObjectData
  47. ///</summary>
  48. [TestMethod()]
  49. public void GetObjectDataTest()
  50. {
  51. SshException target = new SshException(); // TODO: Initialize to an appropriate value
  52. SerializationInfo info = null; // TODO: Initialize to an appropriate value
  53. StreamingContext context = new StreamingContext(); // TODO: Initialize to an appropriate value
  54. target.GetObjectData(info, context);
  55. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  56. }
  57. }
  58. }