mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using System;
|
|
using NUnit.Framework;
|
|
using mRemoteNGTests.UI.Forms;
|
|
using NUnit.Extensions.Forms;
|
|
|
|
namespace mRemoteNGTests.UI.Forms.OptionsPages
|
|
{
|
|
[TestFixture]
|
|
public class OptionsStartupExitPageTests : OptionsFormSetupAndTeardown
|
|
{
|
|
[Test]
|
|
public void StartupExitPageLinkExistsInListView()
|
|
{
|
|
ListViewTester listViewTester = new ListViewTester("PageListView", _optionsForm);
|
|
Assert.That(listViewTester.Items[0].Text, Does.Match("Startup/Exit"));
|
|
}
|
|
|
|
[Test]
|
|
public void IconShownInListView()
|
|
{
|
|
ListViewTester listViewTester = new ListViewTester("PageListView", _optionsForm);
|
|
Assert.That(listViewTester.Items[0].ImageList, Is.Not.Null);
|
|
}
|
|
|
|
[Test]
|
|
public void SelectingStartupExitPageLoadsSettings()
|
|
{
|
|
ListViewTester listViewTester = new ListViewTester("PageListView", _optionsForm);
|
|
listViewTester.Select("Startup/Exit");
|
|
CheckBoxTester checkboxTester = new CheckBoxTester("chkSaveConsOnExit", _optionsForm);
|
|
Assert.That(checkboxTester.Text, Does.Match("Save connections"));
|
|
}
|
|
}
|
|
} |