mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-12-06 11:47:59 -05:00
- Introduce Android app - Migrate project files to .NET 10, updating dependencies and workflows. - Migrate project to Avalonia 12 - Refactor App.axaml to include a ResourceDictionary for theme management. - Introduce new styles for gamepad navigation and focus rings. - Implement hosted main view management for better application lifecycle handling. - Remove deprecated MainWindow.Mods.cs file and related code. - Update README to reflect changes in project structure and requirements. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
758 B
C#
28 lines
758 B
C#
using FluentAssertions;
|
|
using QuiverLauncher.Services;
|
|
|
|
namespace QuiverLauncher.Tests;
|
|
|
|
public class EntryFormOverlayLayoutTests
|
|
{
|
|
[Fact]
|
|
public void ResolveScrollMaxHeight_is_uncapped_when_filling_available_space()
|
|
{
|
|
EntryFormOverlayLayout.ResolveScrollMaxHeight(800, fillAvailable: true).Should().BeNull();
|
|
}
|
|
|
|
[Fact]
|
|
public void ResolveScrollMaxHeight_uses_extra_height_on_tall_screens()
|
|
{
|
|
EntryFormOverlayLayout.ResolveScrollMaxHeight(1080, fillAvailable: false)
|
|
.Should().Be(760);
|
|
}
|
|
|
|
[Fact]
|
|
public void ResolveScrollMaxHeight_keeps_a_floor_on_short_screens()
|
|
{
|
|
EntryFormOverlayLayout.ResolveScrollMaxHeight(500, fillAvailable: false)
|
|
.Should().Be(400);
|
|
}
|
|
}
|