| File: XUnit\ConditionalTheoryAttribute.cs | Web Access |
| Project: src\test\TestUtilities\TestUtilities.csproj (Microsoft.TestUtilities) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // Borrowed from https://github.com/dotnet/aspnetcore/blob/95ed45c67/src/Testing/src/xunit/ using System; using Xunit; using Xunit.Sdk; namespace Microsoft.TestUtilities; [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] [XunitTestCaseDiscoverer("Microsoft.TestUtilities." + nameof(ConditionalTheoryDiscoverer), "Microsoft.TestUtilities")] public class ConditionalTheoryAttribute : TheoryAttribute { }