|
|
@ -65,6 +65,7 @@ namespace Avalonia.Controls.UnitTests |
|
|
{ |
|
|
{ |
|
|
ResetModuleLoadStates(); |
|
|
ResetModuleLoadStates(); |
|
|
AppBuilder.Configure<App>() |
|
|
AppBuilder.Configure<App>() |
|
|
|
|
|
.IgnoreSetupCheck() |
|
|
.UseWindowingSubsystem(() => { }) |
|
|
.UseWindowingSubsystem(() => { }) |
|
|
.UseRenderingSubsystem(() => { }) |
|
|
.UseRenderingSubsystem(() => { }) |
|
|
.UseAvaloniaModules() |
|
|
.UseAvaloniaModules() |
|
|
@ -81,6 +82,7 @@ namespace Avalonia.Controls.UnitTests |
|
|
{ |
|
|
{ |
|
|
ResetModuleLoadStates(); |
|
|
ResetModuleLoadStates(); |
|
|
var builder = AppBuilder.Configure<App>() |
|
|
var builder = AppBuilder.Configure<App>() |
|
|
|
|
|
.IgnoreSetupCheck() |
|
|
.UseWindowingSubsystem(() => { }) |
|
|
.UseWindowingSubsystem(() => { }) |
|
|
.UseRenderingSubsystem(() => { }, "Direct2D1"); |
|
|
.UseRenderingSubsystem(() => { }, "Direct2D1"); |
|
|
builder.UseAvaloniaModules().SetupWithoutStarting(); |
|
|
builder.UseAvaloniaModules().SetupWithoutStarting(); |
|
|
@ -90,6 +92,7 @@ namespace Avalonia.Controls.UnitTests |
|
|
|
|
|
|
|
|
ResetModuleLoadStates(); |
|
|
ResetModuleLoadStates(); |
|
|
builder = AppBuilder.Configure<App>() |
|
|
builder = AppBuilder.Configure<App>() |
|
|
|
|
|
.IgnoreSetupCheck() |
|
|
.UseWindowingSubsystem(() => { }) |
|
|
.UseWindowingSubsystem(() => { }) |
|
|
.UseRenderingSubsystem(() => { }, "Skia"); |
|
|
.UseRenderingSubsystem(() => { }, "Skia"); |
|
|
builder.UseAvaloniaModules().SetupWithoutStarting(); |
|
|
builder.UseAvaloniaModules().SetupWithoutStarting(); |
|
|
@ -99,13 +102,14 @@ namespace Avalonia.Controls.UnitTests |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[Fact (Skip = "We don't have rendering modules with dependencies right now")] |
|
|
[Fact] |
|
|
public void LoadsRenderingModuleWithoutDependenciesWhenNoModuleMatches() |
|
|
public void LoadsRenderingModuleWithoutDependenciesWhenNoModuleMatches() |
|
|
{ |
|
|
{ |
|
|
using (AvaloniaLocator.EnterScope()) |
|
|
using (AvaloniaLocator.EnterScope()) |
|
|
{ |
|
|
{ |
|
|
ResetModuleLoadStates(); |
|
|
ResetModuleLoadStates(); |
|
|
var builder = AppBuilder.Configure<App>() |
|
|
var builder = AppBuilder.Configure<App>() |
|
|
|
|
|
.IgnoreSetupCheck() |
|
|
.UseWindowingSubsystem(() => { }) |
|
|
.UseWindowingSubsystem(() => { }) |
|
|
.UseRenderingSubsystem(() => { }, "TBD"); |
|
|
.UseRenderingSubsystem(() => { }, "TBD"); |
|
|
builder.UseAvaloniaModules().SetupWithoutStarting(); |
|
|
builder.UseAvaloniaModules().SetupWithoutStarting(); |
|
|
|