All checks were successful
release / build-release (push) Successful in 1m19s
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
15 lines
477 B
C#
15 lines
477 B
C#
using System.IO;
|
|
using System.Text.Json;
|
|
using Jellyfin.Plugin.Floatplane.Api.Models;
|
|
|
|
namespace Jellyfin.Plugin.Floatplane.Tests;
|
|
|
|
internal static class Fixture
|
|
{
|
|
public static string Path(string name) => System.IO.Path.Combine(System.AppContext.BaseDirectory, "Fixtures", name);
|
|
|
|
public static string Text(string name) => File.ReadAllText(Path(name));
|
|
|
|
public static T Json<T>(string name) => JsonSerializer.Deserialize<T>(Text(name), FloatplaneJson.Options)!;
|
|
}
|