/// <summary> /// Initializes a new instance of the <see cref="Xunit2MessageSink"/> class. /// </summary> /// <param name="v3MessageSink">The v3 message sink to which to report the messages</param> /// <param name="assemblyUniqueID">The unique ID of the assembly these message belong to</param> /// <param name="discoverer">The discoverer used to serialize test cases</param> public Xunit2MessageSink( _IMessageSink v3MessageSink, string?assemblyUniqueID = null, ITestFrameworkDiscoverer?discoverer = null) { this.v3MessageSink = Guard.ArgumentNotNull(nameof(v3MessageSink), v3MessageSink); adapter = new Xunit2MessageAdapter(assemblyUniqueID, discoverer); }
/// <summary> /// Initializes a new instance of the <see cref="Xunit2DiscoverySink"/> class. /// </summary> /// <param name="filters">The filters to be applied to the discovered test cases</param> public Xunit2DiscoverySink(XunitFilters filters) { this.filters = filters; adapter = new Xunit2MessageAdapter(); }