HostKeyEventArgsTest.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Renci.SshNet.Common;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using Renci.SshNet.Security;
  4. using Renci.SshNet.Tests.Common;
  5. namespace Renci.SshNet.Tests.Classes.Common
  6. {
  7. /// <summary>
  8. ///This is a test class for HostKeyEventArgsTest and is intended
  9. ///to contain all HostKeyEventArgsTest Unit Tests
  10. ///</summary>
  11. [TestClass()]
  12. [Ignore] // placeholder for actual test
  13. public class HostKeyEventArgsTest : TestBase
  14. {
  15. /// <summary>
  16. ///A test for HostKeyEventArgs Constructor
  17. ///</summary>
  18. [TestMethod()]
  19. public void HostKeyEventArgsConstructorTest()
  20. {
  21. KeyHostAlgorithm host = null; // TODO: Initialize to an appropriate value
  22. HostKeyEventArgs target = new HostKeyEventArgs(host);
  23. Assert.Inconclusive("TODO: Implement code to verify target");
  24. }
  25. /// <summary>
  26. ///A test for CanTrust
  27. ///</summary>
  28. [TestMethod()]
  29. public void CanTrustTest()
  30. {
  31. KeyHostAlgorithm host = null; // TODO: Initialize to an appropriate value
  32. HostKeyEventArgs target = new HostKeyEventArgs(host); // TODO: Initialize to an appropriate value
  33. bool expected = false; // TODO: Initialize to an appropriate value
  34. bool actual;
  35. target.CanTrust = expected;
  36. actual = target.CanTrust;
  37. Assert.AreEqual(expected, actual);
  38. Assert.Inconclusive("Verify the correctness of this test method.");
  39. }
  40. }
  41. }