mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using System.Threading;
|
|
using System.Windows.Forms;
|
|
using mRemoteNGTests.TestHelpers;
|
|
using NUnit.Framework;
|
|
|
|
namespace mRemoteNGTests.UI.Forms.OptionsPages
|
|
{
|
|
[TestFixture]
|
|
[Apartment(ApartmentState.STA)]
|
|
public class OptionsTabsPanelPageTests : OptionsFormSetupAndTeardown
|
|
{
|
|
[Test]
|
|
public void TabsPanelPageLinkExistsInListView()
|
|
{
|
|
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
|
Assert.That(listViewTester.Items[3].Text, Does.Match("Tabs & Panels"));
|
|
}
|
|
|
|
[Test]
|
|
public void TabsPanelIconShownInListView()
|
|
{
|
|
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
|
Assert.That(listViewTester.Items[3].ImageList, Is.Not.Null);
|
|
}
|
|
|
|
[Test]
|
|
public void SelectingTabsPanelPageLoadsSettings()
|
|
{
|
|
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
|
listViewTester.Select("Tabs & Panels");
|
|
CheckBox checkboxTester = _optionsForm.FindControl<CheckBox>("chkAlwaysShowPanelTabs");
|
|
Assert.That(checkboxTester.Text, Does.Match("Always show panel tabs"));
|
|
}
|
|
}
|
|
} |