mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
41 lines
983 B
C#
41 lines
983 B
C#
using mRemoteNG.App;
|
|
using mRemoteNG.Forms;
|
|
using mRemoteNG.Messages;
|
|
using mRemoteNG.UI.Window;
|
|
using NUnit.Framework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WeifenLuo.WinFormsUI.Docking;
|
|
|
|
namespace mRemoteNGTests.UI.Forms
|
|
{
|
|
public class OptionsFormSetupAndTeardown
|
|
{
|
|
protected OptionsForm _optionsForm;
|
|
|
|
[OneTimeSetUp]
|
|
public void OnetimeSetup()
|
|
{
|
|
Runtime.MessageCollector = new MessageCollector(new ErrorAndInfoWindow(new DockContent()));
|
|
Runtime.Log = Logger.GetSingletonInstance();
|
|
}
|
|
|
|
[SetUp]
|
|
public void Setup()
|
|
{
|
|
_optionsForm = new OptionsForm();
|
|
_optionsForm.Show();
|
|
}
|
|
|
|
[TearDown]
|
|
public void Teardown()
|
|
{
|
|
_optionsForm.Dispose();
|
|
while (_optionsForm.Disposing) ;
|
|
_optionsForm = null;
|
|
}
|
|
}
|
|
} |