using Microsoft.Extensions.Localization; namespace Marathon.UI.Tests.Support; /// /// Identity localizer — returns the key as the value. Lets bUnit assertions /// work against the resource keys without loading RESX bundles. /// /// Resource marker type. public sealed class TestLocalizer : IStringLocalizer { public LocalizedString this[string name] => new(name, name, resourceNotFound: false); public LocalizedString this[string name, params object[] arguments] => new(name, string.Format(name, arguments), resourceNotFound: false); public IEnumerable GetAllStrings(bool includeParentCultures) => Array.Empty(); }