mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
fix failing test
This commit is contained in:
17
mRemoteNGTests/AssemblyTestSetup.cs
Normal file
17
mRemoteNGTests/AssemblyTestSetup.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Windows.Forms;
|
||||
using NUnit.Framework;
|
||||
|
||||
|
||||
// Dont put this in a namespace. Leaving it by itself tells NUnit
|
||||
// to run it on assembly load
|
||||
[SetUpFixture]
|
||||
public class AssemblyTestSetup
|
||||
{
|
||||
[OneTimeSetUp]
|
||||
public void AssemblySetup()
|
||||
{
|
||||
// ensure window options set before any test window created
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,6 @@ namespace mRemoteNGTests.UI.Controls
|
||||
{
|
||||
public TextBoxExtensionsTestForm()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Compile Include="App\UpdaterTests.cs" />
|
||||
<Compile Include="AssemblyTestSetup.cs" />
|
||||
<Compile Include="BinaryFileTests.cs" />
|
||||
<Compile Include="Config\Connections\Multiuser\ConnectionsUpdateAvailableEventArgsTests.cs" />
|
||||
<Compile Include="Config\DataProviders\FileBackupCreatorTests.cs" />
|
||||
|
||||
Reference in New Issue
Block a user