KeyboardInteractiveAuthenticationMethodTest.cs 787 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using Microsoft.VisualStudio.TestTools.UnitTesting;
  3. using Renci.SshNet.Tests.Common;
  4. namespace Renci.SshNet.Tests.Classes
  5. {
  6. /// <summary>
  7. /// Provides functionality to perform keyboard interactive authentication.
  8. /// </summary>
  9. [TestClass]
  10. public partial class KeyboardInteractiveAuthenticationMethodTest : TestBase
  11. {
  12. [TestMethod]
  13. public void Keyboard_Test_Pass_Null()
  14. {
  15. Assert.ThrowsException<ArgumentNullException>(() => new KeyboardInteractiveAuthenticationMethod(null));
  16. }
  17. [TestMethod]
  18. public void Keyboard_Test_Pass_Whitespace()
  19. {
  20. Assert.ThrowsException<ArgumentException>(() => new KeyboardInteractiveAuthenticationMethod(string.Empty));
  21. }
  22. }
  23. }