mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 17:25:51 +00:00
f1297dec75
* Move test projects to test folder. Move global.json to root of repo. Update solution items in solution. * Move test projects to test folder. Move global.json to root of repo. Update solution items in solution. Update appveyor configuration/ * Attempt to have appveyor use the correct .NET SDK. * Update .NET SDK to version 7.0.402. * Move Data folder below Renci.SshNet.Tests. * Make csinst less chatty. * Move Data folder directly below test folder as it's used by multiple test projects. * Remove CS1591 nowarn from concrete test projects as this is already defined in the Directory.Build.props that is in the test folder. * Fix integration test after moving test projects --------- Co-authored-by: drieseng <gert.driesen@telenet.be>
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace Renci.SshNet.Tests.Classes
|
|
{
|
|
[TestClass]
|
|
public class ServiceFactoryTest_CreateClientAuthentication
|
|
{
|
|
private ServiceFactory _serviceFactory;
|
|
private IClientAuthentication _actual;
|
|
|
|
private void Arrange()
|
|
{
|
|
_serviceFactory = new ServiceFactory();
|
|
}
|
|
|
|
[TestInitialize]
|
|
public void Initialize()
|
|
{
|
|
Arrange();
|
|
Act();
|
|
}
|
|
|
|
private void Act()
|
|
{
|
|
_actual = _serviceFactory.CreateClientAuthentication();
|
|
}
|
|
|
|
[TestMethod]
|
|
public void CreateClientAuthenticationShouldNotReturnNull()
|
|
{
|
|
Assert.IsNotNull(_actual);
|
|
}
|
|
|
|
[TestMethod]
|
|
public void ClientAuthenticationShouldHavePartialSuccessLimitOf5()
|
|
{
|
|
var clientAuthentication = _actual as ClientAuthentication;
|
|
Assert.IsNotNull(clientAuthentication);
|
|
Assert.AreEqual(5, clientAuthentication.PartialSuccessLimit);
|
|
}
|
|
}
|
|
}
|