KeyboardInteractiveAuthenticationMethodTest.cs 799 B

1234567891011121314151617181920212223242526272829
  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. [ExpectedException(typeof(ArgumentNullException))]
  14. public void Keyboard_Test_Pass_Null()
  15. {
  16. new KeyboardInteractiveAuthenticationMethod(null);
  17. }
  18. [TestMethod]
  19. [ExpectedException(typeof(ArgumentException))]
  20. public void Keyboard_Test_Pass_Whitespace()
  21. {
  22. new KeyboardInteractiveAuthenticationMethod(string.Empty);
  23. }
  24. }
  25. }