Files
microsoft--semantic-kernel/dotnet/test/VectorData/VectorData.ConformanceTests/Xunit/DisableTestsAttribute.cs
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

21 lines
569 B
C#

// Copyright (c) Microsoft. All rights reserved.
namespace VectorData.ConformanceTests.Xunit;
/// <summary>
/// Disable the tests in the decorated scope.
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)]
public sealed class DisableTestsAttribute : Attribute, ITestCondition
{
public ValueTask<bool> IsMetAsync()
{
return new(false);
}
public string Skip { get; set; } = "Test disabled due to usage of DisableTestsAttribute";
public string SkipReason
=> this.Skip;
}