mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
fix additional tests
This commit is contained in:
@@ -13,14 +13,14 @@ namespace mRemoteNGTests.UI.Forms.OptionsPages
|
|||||||
public void ConnectionsPageLinkExistsInListView()
|
public void ConnectionsPageLinkExistsInListView()
|
||||||
{
|
{
|
||||||
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
||||||
Assert.That(listViewTester.Items[4].Text, Does.Match("Connections"));
|
Assert.That(listViewTester.Items[2].Text, Does.Match("Connections"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void ConnectionsIconShownInListView()
|
public void ConnectionsIconShownInListView()
|
||||||
{
|
{
|
||||||
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
||||||
Assert.That(listViewTester.Items[4].ImageList, Is.Not.Null);
|
Assert.That(listViewTester.Items[2].ImageList, Is.Not.Null);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ namespace mRemoteNGTests.UI.Forms.OptionsPages
|
|||||||
public void TabsPanelPageLinkExistsInListView()
|
public void TabsPanelPageLinkExistsInListView()
|
||||||
{
|
{
|
||||||
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
||||||
Assert.That(listViewTester.Items[2].Text, Does.Match("Tabs & Panels"));
|
Assert.That(listViewTester.Items[3].Text, Does.Match("Tabs & Panels"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TabsPanelIconShownInListView()
|
public void TabsPanelIconShownInListView()
|
||||||
{
|
{
|
||||||
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
ListViewTester listViewTester = new ListViewTester("lstOptionPages", _optionsForm);
|
||||||
Assert.That(listViewTester.Items[2].ImageList, Is.Not.Null);
|
Assert.That(listViewTester.Items[3].ImageList, Is.Not.Null);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ namespace mRemoteNGTests.UI.Window.ConfigWindowTests
|
|||||||
public void AutomaticResizePropertyShown_WhenResolutionIsDynamic(RDPResolutions resolution)
|
public void AutomaticResizePropertyShown_WhenResolutionIsDynamic(RDPResolutions resolution)
|
||||||
{
|
{
|
||||||
ConnectionInfo.Resolution = resolution;
|
ConnectionInfo.Resolution = resolution;
|
||||||
ExpectedPropertyList.Clear();
|
|
||||||
ExpectedPropertyList.Add(nameof(mRemoteNG.Connection.ConnectionInfo.AutomaticResize));
|
ExpectedPropertyList.Add(nameof(mRemoteNG.Connection.ConnectionInfo.AutomaticResize));
|
||||||
|
|
||||||
RunVerification();
|
RunVerification();
|
||||||
|
|||||||
Reference in New Issue
Block a user