| File: xunit\WcfFactDiscoverer.cs | Web Access |
| Project: src\src\System.Private.ServiceModel\tests\Common\Infrastructure\Infrastructure.Common.csproj (Infrastructure.Common) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using Xunit.Abstractions; using Xunit.Sdk; namespace Infrastructure.Common { public class WcfFactDiscoverer : FactDiscoverer { private readonly IMessageSink _diagnosticMessageSink; public WcfFactDiscoverer(IMessageSink diagnosticMessageSink) : base(diagnosticMessageSink) { _diagnosticMessageSink = diagnosticMessageSink; } public override IEnumerable<IXunitTestCase> Discover( ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute) { IEnumerable<IXunitTestCase> testCases = base.Discover(discoveryOptions, testMethod, factAttribute); return WcfTestDiscoverer.Discover(discoveryOptions, _diagnosticMessageSink, testMethod, testCases); } } }