2
0

AuthenticationPromptTest.cs 1.7 KB

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