mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-26 01:49:12 +01:00
test: the choice between window surfaces and the processor is covered
The choice moves out of Program, which no test runs, into WindowSurfaces, where both branches are tested. Sonar's quality gate failed on the coverage of the new code.
This commit is contained in:
@@ -21,11 +21,13 @@ public class WindowSurfacesTests
|
||||
Assert.Contains(Win32RenderingMode.AngleEgl, WindowSurfaces.Win32Options.RenderingMode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void The_options_go_to_the_same_builder()
|
||||
[Theory]
|
||||
[InlineData(false)]
|
||||
[InlineData(true)]
|
||||
public void The_options_go_to_the_same_builder_with_or_without_the_processor(bool softwareRender)
|
||||
{
|
||||
var builder = AppBuilder.Configure<Avalonia.Application>();
|
||||
|
||||
Assert.Same(builder, WindowSurfaces.ApplyTo(builder));
|
||||
Assert.Same(builder, WindowSurfaces.ApplyTo(builder, softwareRender));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user