// ReSharper disable PossibleMultipleEnumeration /// <summary> /// Executes the specified input streams. /// </summary> /// <param name="inputStreams">The input streams.</param> /// <returns>IEnumerable<PvcStream>.</returns> public override IEnumerable<PvcStream> Execute(IEnumerable<PvcStream> inputStreams) { var unit = new XunitProject(); foreach (var testAssembly in inputStreams.Select(x => x.OriginalSourcePath).Where(File.Exists)) { unit.AddAssembly(new XunitProjectAssembly { AssemblyFilename = testAssembly, ShadowCopy = true }); } unit.RunTestProject(_displaySuccess, _displayFailureStack); return inputStreams; }