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

24 lines
807 B
C#

// Copyright (c) Microsoft. All rights reserved.
using Xunit.Abstractions;
using Xunit.Sdk;
namespace VectorData.ConformanceTests.Xunit;
/// <summary>
/// Used dynamically from <see cref="ConditionalFactAttribute" />.
/// Make sure to update that class if you move this type.
/// </summary>
public class ConditionalFactDiscoverer(IMessageSink messageSink) : FactDiscoverer(messageSink)
{
protected override IXunitTestCase CreateTestCase(
ITestFrameworkDiscoveryOptions discoveryOptions,
ITestMethod testMethod,
IAttributeInfo factAttribute)
=> new ConditionalFactTestCase(
this.DiagnosticMessageSink,
discoveryOptions.MethodDisplayOrDefault(),
discoveryOptions.MethodDisplayOptionsOrDefault(),
testMethod);
}