mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-13 12:46:36 +08:00
项目结构调整
This commit is contained in:
28
Others/Fluent.Ribbon/Fluent.Ribbon.Tests/AssemblySetup.cs
Normal file
28
Others/Fluent.Ribbon/Fluent.Ribbon.Tests/AssemblySetup.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user