2
0

HostKeyEventArgsTest.cs 1.6 KB

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