// Copyright (c) 2025-2026 GeWuYou // SPDX-License-Identifier: Apache-2.0 using GFramework.Game.Abstractions.Data; using GFramework.Game.Abstractions.Enums; namespace GFramework.Game.Tests.Data; /// /// 为持久化测试提供稳定的测试数据位置实现。 /// internal sealed class TestDataLocation : IDataLocation { /// /// 初始化测试数据位置。 /// /// 测试使用的存储键。 /// 测试使用的存储类型。 /// 测试使用的命名空间。 /// 附加测试元数据。 public TestDataLocation( string key, StorageKinds kinds = StorageKinds.Local, string? namespaceValue = null, IReadOnlyDictionary? metadata = null) { Key = key; Kinds = kinds; Namespace = namespaceValue; Metadata = metadata; } /// /// 获取测试数据对应的存储键。 /// public string Key { get; } /// /// 获取测试数据使用的存储类型。 /// public StorageKinds Kinds { get; } /// /// 获取测试数据使用的命名空间。 /// public string? Namespace { get; } /// /// 获取附加到测试位置上的元数据。 /// public IReadOnlyDictionary? Metadata { get; } }