Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading;

Expand Down Expand Up @@ -158,6 +160,14 @@ public void RunAllTestsWithMixedTFMsWillProvideAdditionalInformationToTheDebugge
vstestConsoleWrapper.RunTestsWithCustomTestHost(new[] { netFrameworkDll, netDll }, runsettingsXml, runEventHandler, testHostLauncher);

// Assert
if (runEventHandler.Errors.Any())
{
foreach (var file in Directory.GetFiles(TempDirectory.Path, "log*.txt"))
{
Console.WriteLine($"Log file: '{file}'");
Console.WriteLine(File.ReadAllText(file));
}
}
runEventHandler.Errors.Should().BeEmpty();
testHostLauncher.AttachDebuggerInfos.Should().HaveCount(2);
var targetFrameworks = testHostLauncher.AttachDebuggerInfos.Select(i => i.TargetFramework).ToList();
Expand Down
Loading