Files
quiver-launcher/QuiverLauncher.Tests/LibraryUpdateBadgeTests.cs
T
Thomas GeorgiadisandCursor 2c85fa0370 feat: update Quiver Launcher to support .NET 10 and enhance UI/UX
- 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>
2026-09-01 20:06:33 +10:00

55 lines
1.4 KiB
C#

using FluentAssertions;
using QuiverLauncher.Core.Models;
using QuiverLauncher.Models;
namespace QuiverLauncher.Tests;
public class LibraryUpdateBadgeTests
{
[Fact]
public void ShowUpdateBadge_true_when_catalog_changes_pending_and_badges_enabled()
{
var game = new GameInfo
{
HasPendingCatalogChanges = true,
ShowLibraryUpdateBadges = true,
Status = GameStatus.Installed,
};
game.ShowUpdateBadge.Should().BeTrue();
}
[Fact]
public void ShowUpdateBadge_false_for_app_version_update_only()
{
var game = new GameInfo
{
Status = GameStatus.UpdateAvailable,
HasPendingCatalogChanges = false,
ShowLibraryUpdateBadges = true,
};
game.ShowUpdateBadge.Should().BeFalse();
}
[Fact]
public void ShowUpdateBadge_false_when_badges_disabled()
{
var game = new GameInfo
{
HasPendingCatalogChanges = true,
ShowLibraryUpdateBadges = false,
};
game.ShowUpdateBadge.Should().BeFalse();
}
[Fact]
public void CanInfoOptions_true_when_repository_is_set()
{
new GameInfo { Repository = "owner/repo" }.CanInfoOptions.Should().BeTrue();
new GameInfo { Repository = "" }.CanInfoOptions.Should().BeFalse();
new GameInfo().CanInfoOptions.Should().BeFalse();
}
}