mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
32 lines
729 B
C#
32 lines
729 B
C#
using System.Threading;
|
|
using mRemoteNG.UI.Window;
|
|
using NUnit.Framework;
|
|
using WeifenLuo.WinFormsUI.Docking;
|
|
|
|
|
|
namespace mRemoteNGTests.UI.Window
|
|
{
|
|
public class ConnectionTreeWindowTests
|
|
{
|
|
private ConnectionTreeWindow _connectionTreeWindow;
|
|
|
|
[SetUp]
|
|
public void Setup()
|
|
{
|
|
_connectionTreeWindow = new ConnectionTreeWindow(new DockContent());
|
|
}
|
|
|
|
[TearDown]
|
|
public void Teardown()
|
|
{
|
|
_connectionTreeWindow.Close();
|
|
}
|
|
|
|
[Test, Apartment(ApartmentState.STA)]
|
|
public void CanShowWindow()
|
|
{
|
|
_connectionTreeWindow.Show();
|
|
Assert.That(_connectionTreeWindow.Visible);
|
|
}
|
|
}
|
|
} |