Files
2023-04-16 20:11:40 +08:00

28 lines
794 B
C#

namespace Fluent.Tests
{
using System;
using System.Threading;
using System.Windows;
using System.Windows.Threading;
using NUnit.Framework;
[SetUpFixture]
public class AssemblySetup
{
[OneTimeSetUp]
public void Setup()
{
SynchronizationContext.SetSynchronizationContext(new DispatcherSynchronizationContext());
var app = new Application { ShutdownMode = ShutdownMode.OnExplicitShutdown };
app.Resources.MergedDictionaries.Add((ResourceDictionary)Application.LoadComponent(new Uri("/Fluent;component/Themes/Generic.xaml", UriKind.Relative)));
}
[OneTimeTearDown]
public void TearDown()
{
Dispatcher.CurrentDispatcher.InvokeShutdown();
}
}
}