| 1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using Renci.SshNet.Tests.Common;
- namespace Renci.SshNet.Tests.Classes
- {
- /// <summary>
- /// Provides functionality to perform keyboard interactive authentication.
- /// </summary>
- [TestClass]
- public partial class KeyboardInteractiveAuthenticationMethodTest : TestBase
- {
- [TestMethod]
- [TestCategory("AuthenticationMethod")]
- [Owner("Kenneth_aa")]
- [Description("KeyboardInteractiveAuthenticationMethod: Pass null as username.")]
- [ExpectedException(typeof(ArgumentException))]
- public void Keyboard_Test_Pass_Null()
- {
- new KeyboardInteractiveAuthenticationMethod(null);
- }
- [TestMethod]
- [TestCategory("AuthenticationMethod")]
- [Owner("Kenneth_aa")]
- [Description("KeyboardInteractiveAuthenticationMethod: Pass String.Empty as username.")]
- [ExpectedException(typeof(ArgumentException))]
- public void Keyboard_Test_Pass_Whitespace()
- {
- new KeyboardInteractiveAuthenticationMethod(string.Empty);
- }
- }
- }
|