mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using NUnit.Framework;
|
|
using NUnit.Extensions.Forms;
|
|
|
|
namespace mRemoteNGTests.UI.Forms.OptionsPages
|
|
{
|
|
[TestFixture]
|
|
public class OptionsUpdatesPageTests : OptionsFormSetupAndTeardown
|
|
{
|
|
[Test]
|
|
public void UpdatesPageLinkExistsInListView()
|
|
{
|
|
ListViewTester listViewTester = new ListViewTester("PageListView", _optionsForm);
|
|
Assert.That(listViewTester.Items[5].Text, Does.Match("Updates"));
|
|
}
|
|
|
|
[Test]
|
|
public void UpdatesIconShownInListView()
|
|
{
|
|
ListViewTester listViewTester = new ListViewTester("PageListView", _optionsForm);
|
|
Assert.That(listViewTester.Items[5].ImageList, Is.Not.Null);
|
|
}
|
|
|
|
[Test]
|
|
public void SelectingUpdatesPageLoadsSettings()
|
|
{
|
|
ListViewTester listViewTester = new ListViewTester("PageListView", _optionsForm);
|
|
listViewTester.Select("Updates");
|
|
CheckBoxTester checkboxTester = new CheckBoxTester("chkCheckForUpdatesOnStartup", _optionsForm);
|
|
Assert.That(checkboxTester.Text, Does.Match("Check for updates"));
|
|
}
|
|
}
|
|
} |