From 00bf470ddbc2a4adbefb0f52c6b8638e3eb842b3 Mon Sep 17 00:00:00 2001 From: Vagisha Nidhi Date: Fri, 10 Aug 2018 16:26:00 +0530 Subject: [PATCH] Updated test --- .../GivenDotnetTestBuildsAndRunsTestfromCsproj.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs b/test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs index 7121959fe..bc88af2cd 100644 --- a/test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs +++ b/test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs @@ -152,11 +152,14 @@ namespace Microsoft.DotNet.Cli.Test.Tests .ExecuteWithCapturedOutput("--logger \"trx;logfilename=custom.trx\" --logger console;verbosity=normal -- RunConfiguration.ResultsDirectory=" + trxLoggerDirectory); // Verify - var trxFilePath = Path.Combine(trxLoggerDirectory, "custom.trx"); - Assert.True(File.Exists(trxFilePath)); - result.StdOut.Should().Contain(trxFilePath); - result.StdOut.Should().Contain("Passed VSTestPassTest"); - result.StdOut.Should().Contain("Failed VSTestFailTest"); + if (!DotnetUnderTest.IsLocalized()) + { + var trxFilePath = Path.Combine(trxLoggerDirectory, "custom.trx"); + Assert.True(File.Exists(trxFilePath)); + result.StdOut.Should().Contain(trxFilePath); + result.StdOut.Should().Contain("Passed VSTestPassTest"); + result.StdOut.Should().Contain("Failed VSTestFailTest"); + } // Cleanup trxLoggerDirectory if it exist if (Directory.Exists(trxLoggerDirectory))