#region ========================================================================= USING ===================================================================================== using Lumina.Contracts.Fixtures.Core.Responses.FileSystemManagement.Common; using Lumina.Presentation.Api.Fixtures.Core.Endpoints.FileSystemManagement; using System; using System.Diagnostics.CodeAnalysis; using System.IO; using Xunit; #endregion namespace Lumina.Presentation.Api.IntegrationTests.Common.Setup; /// /// Marks a test to be skipped when the file system does not support the attribute. /// [AttributeUsage(AttributeTargets.Method)] [ExcludeFromCodeCoverage] public sealed class SkipWhenHiddenAttributeNotSupportedFactAttribute : FactAttribute { /// /// Gets the reason to skip the test. If set, the test will be skipped instead of executed. /// public override string Skip => FileSystemStructureFixture.HiddenAttributeIsSupported ? string.Empty : "The file system does not support the hidden file attribute, so the hidden elements scenario cannot be set up."; }