mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 12:08:37 +08:00
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using mRemoteNG.Connection;
|
|
using mRemoteNG.Connection.Protocol;
|
|
using mRemoteNG.UI.Window;
|
|
using NUnit.Framework;
|
|
|
|
namespace mRemoteNGTests.UI.Window.ConfigWindowTests
|
|
{
|
|
public abstract class ConfigWindowSpecialTestsBase
|
|
{
|
|
protected abstract ProtocolType Protocol { get; }
|
|
protected bool TestAgainstContainerInfo { get; set; } = false;
|
|
protected ConfigWindow ConfigWindow;
|
|
protected ConnectionInfo ConnectionInfo;
|
|
protected List<string> ExpectedPropertyList;
|
|
|
|
[SetUp]
|
|
public virtual void Setup()
|
|
{
|
|
ConnectionInfo = ConfigWindowGeneralTests.ConstructConnectionInfo(Protocol, TestAgainstContainerInfo);
|
|
ExpectedPropertyList = ConfigWindowGeneralTests.BuildExpectedConnectionInfoPropertyList(Protocol, TestAgainstContainerInfo);
|
|
|
|
ConfigWindow = new ConfigWindow
|
|
{
|
|
PropertiesVisible = true,
|
|
};
|
|
}
|
|
|
|
public void RunVerification()
|
|
{
|
|
ConfigWindow.SelectedTreeNode = ConnectionInfo;
|
|
Assert.That(
|
|
ConfigWindow.VisibleObjectProperties,
|
|
Is.EquivalentTo(ExpectedPropertyList));
|
|
}
|
|
}
|
|
}
|