2
0

SshExceptionTest.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using System;
  2. using System.Runtime.Serialization;
  3. using Microsoft.VisualStudio.TestTools.UnitTesting;
  4. using Renci.SshNet.Common;
  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. [Ignore] // placeholder for actual test
  50. public void GetObjectDataTest()
  51. {
  52. SshException target = new SshException(); // TODO: Initialize to an appropriate value
  53. SerializationInfo info = null; // TODO: Initialize to an appropriate value
  54. StreamingContext context = new StreamingContext(); // TODO: Initialize to an appropriate value
  55. target.GetObjectData(info, context);
  56. Assert.Inconclusive("A method that does not return a value cannot be verified.");
  57. }
  58. }
  59. }