|
@@ -12,6 +12,7 @@ using Avalonia.Shared.PlatformSupport;
|
|
|
using Avalonia.Styling;
|
|
using Avalonia.Styling;
|
|
|
using Avalonia.Themes.Default;
|
|
using Avalonia.Themes.Default;
|
|
|
using Avalonia.Rendering;
|
|
using Avalonia.Rendering;
|
|
|
|
|
+using System.Reactive.Concurrency;
|
|
|
|
|
|
|
|
namespace Avalonia.UnitTests
|
|
namespace Avalonia.UnitTests
|
|
|
{
|
|
{
|
|
@@ -63,6 +64,7 @@ namespace Avalonia.UnitTests
|
|
|
IRenderer renderer = null,
|
|
IRenderer renderer = null,
|
|
|
IPlatformRenderInterface renderInterface = null,
|
|
IPlatformRenderInterface renderInterface = null,
|
|
|
IRenderLoop renderLoop = null,
|
|
IRenderLoop renderLoop = null,
|
|
|
|
|
+ IScheduler scheduler = null,
|
|
|
IStandardCursorFactory standardCursorFactory = null,
|
|
IStandardCursorFactory standardCursorFactory = null,
|
|
|
IStyler styler = null,
|
|
IStyler styler = null,
|
|
|
Func<Styles> theme = null,
|
|
Func<Styles> theme = null,
|
|
@@ -78,6 +80,7 @@ namespace Avalonia.UnitTests
|
|
|
Renderer = renderer;
|
|
Renderer = renderer;
|
|
|
RenderInterface = renderInterface;
|
|
RenderInterface = renderInterface;
|
|
|
RenderLoop = renderLoop;
|
|
RenderLoop = renderLoop;
|
|
|
|
|
+ Scheduler = scheduler;
|
|
|
StandardCursorFactory = standardCursorFactory;
|
|
StandardCursorFactory = standardCursorFactory;
|
|
|
Styler = styler;
|
|
Styler = styler;
|
|
|
Theme = theme;
|
|
Theme = theme;
|
|
@@ -94,6 +97,7 @@ namespace Avalonia.UnitTests
|
|
|
public IRenderer Renderer { get; }
|
|
public IRenderer Renderer { get; }
|
|
|
public IPlatformRenderInterface RenderInterface { get; }
|
|
public IPlatformRenderInterface RenderInterface { get; }
|
|
|
public IRenderLoop RenderLoop { get; }
|
|
public IRenderLoop RenderLoop { get; }
|
|
|
|
|
+ public IScheduler Scheduler { get; }
|
|
|
public IStandardCursorFactory StandardCursorFactory { get; }
|
|
public IStandardCursorFactory StandardCursorFactory { get; }
|
|
|
public IStyler Styler { get; }
|
|
public IStyler Styler { get; }
|
|
|
public Func<Styles> Theme { get; }
|
|
public Func<Styles> Theme { get; }
|
|
@@ -110,6 +114,7 @@ namespace Avalonia.UnitTests
|
|
|
IRenderer renderer = null,
|
|
IRenderer renderer = null,
|
|
|
IPlatformRenderInterface renderInterface = null,
|
|
IPlatformRenderInterface renderInterface = null,
|
|
|
IRenderLoop renderLoop = null,
|
|
IRenderLoop renderLoop = null,
|
|
|
|
|
+ IScheduler scheduler = null,
|
|
|
IStandardCursorFactory standardCursorFactory = null,
|
|
IStandardCursorFactory standardCursorFactory = null,
|
|
|
IStyler styler = null,
|
|
IStyler styler = null,
|
|
|
Func<Styles> theme = null,
|
|
Func<Styles> theme = null,
|
|
@@ -127,6 +132,7 @@ namespace Avalonia.UnitTests
|
|
|
renderer: renderer ?? Renderer,
|
|
renderer: renderer ?? Renderer,
|
|
|
renderInterface: renderInterface ?? RenderInterface,
|
|
renderInterface: renderInterface ?? RenderInterface,
|
|
|
renderLoop: renderLoop ?? RenderLoop,
|
|
renderLoop: renderLoop ?? RenderLoop,
|
|
|
|
|
+ scheduler: scheduler ?? Scheduler,
|
|
|
standardCursorFactory: standardCursorFactory ?? StandardCursorFactory,
|
|
standardCursorFactory: standardCursorFactory ?? StandardCursorFactory,
|
|
|
styler: styler ?? Styler,
|
|
styler: styler ?? Styler,
|
|
|
theme: theme ?? Theme,
|
|
theme: theme ?? Theme,
|