|
|
|
@ -1,4 +1,6 @@ |
|
|
|
using System; |
|
|
|
using System.Threading; |
|
|
|
using Avalonia.Controls; |
|
|
|
using Avalonia.Threading; |
|
|
|
|
|
|
|
namespace Avalonia.UnitTests; |
|
|
|
@ -11,6 +13,7 @@ public class ScopedTestBase : IDisposable |
|
|
|
{ |
|
|
|
AvaloniaLocator.Current = AvaloniaLocator.CurrentMutable = new AvaloniaLocator(); |
|
|
|
Dispatcher.ResetBeforeUnitTests(); |
|
|
|
Control.ResetLoadedQueueForUnitTests(); |
|
|
|
_scope = AvaloniaLocator.EnterScope(); |
|
|
|
} |
|
|
|
|
|
|
|
|