mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System;
|
|
using NUnit.Framework;
|
|
using mRemoteNGTests.UI.Forms;
|
|
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"));
|
|
}
|
|
}
|
|
} |