Files
microsoft--semantic-kernel/dotnet/test/VectorData/VectorData.ConformanceTests/Xunit/ConditionalFactTestCase.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

40 lines
1.3 KiB
C#

// Copyright (c) Microsoft. All rights reserved.
using Xunit.Abstractions;
using Xunit.Sdk;
namespace VectorData.ConformanceTests.Xunit;
public sealed class ConditionalFactTestCase : XunitTestCase
{
[Obsolete("Called by the de-serializer; should only be called by deriving classes for de-serialization purposes")]
public ConditionalFactTestCase()
{
}
public ConditionalFactTestCase(
IMessageSink diagnosticMessageSink,
TestMethodDisplay defaultMethodDisplay,
TestMethodDisplayOptions defaultMethodDisplayOptions,
ITestMethod testMethod,
object[]? testMethodArguments = null)
: base(diagnosticMessageSink, defaultMethodDisplay, defaultMethodDisplayOptions, testMethod, testMethodArguments)
{
}
public override async Task<RunSummary> RunAsync(
IMessageSink diagnosticMessageSink,
IMessageBus messageBus,
object[] constructorArguments,
ExceptionAggregator aggregator,
CancellationTokenSource cancellationTokenSource)
=> await XunitTestCaseExtensions.TrySkipAsync(this, messageBus)
? new RunSummary { Total = 1, Skipped = 1 }
: await base.RunAsync(
diagnosticMessageSink,
messageBus,
constructorArguments,
aggregator,
cancellationTokenSource);
}