From 59abe4e2729ad85105cdc532a64301e4c3458f59 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Thu, 23 May 2024 12:52:02 +1000 Subject: [PATCH] fix Atribute typo --- .../LoggerTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/LoggerTests.cs b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/LoggerTests.cs index 8d75310b97..a3092eb8d5 100644 --- a/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/LoggerTests.cs +++ b/test/Microsoft.TestPlatform.Acceptance.IntegrationTests/LoggerTests.cs @@ -77,7 +77,7 @@ public void HtmlLoggerWithFriendlyNameContainsExpectedContent(RunnerInfo runnerI private static XmlDocument LoadReport(string htmlLogFilePath) { // XML reader cannot handle
tags because they are not closed, and hence are not valid XML. - // They are correct HTML though, so we patch it here. + // They are correct HTML though, so we patch it here. var text = File.ReadAllText(htmlLogFilePath).Replace("
", "
"); var report = new XmlDocument(); report.Load(new StringReader(text)); @@ -163,7 +163,7 @@ public void TrxLoggerResultSummaryOutcomeValueShouldBeFailedIfNoTestsExecutedAnd InvokeVsTest(arguments); - string? outcomeValue = GetElementAtributeValueFromTrx(trxFilePath, "ResultSummary", "outcome"); + string? outcomeValue = GetElementAttributeValueFromTrx(trxFilePath, "ResultSummary", "outcome"); Assert.AreEqual("Failed", outcomeValue); } @@ -186,7 +186,7 @@ public void TrxLoggerResultSummaryOutcomeValueShouldNotChangeIfNoTestsExecutedAn InvokeVsTest(arguments); - string? outcomeValue = GetElementAtributeValueFromTrx(trxFilePath, "ResultSummary", "outcome"); + string? outcomeValue = GetElementAttributeValueFromTrx(trxFilePath, "ResultSummary", "outcome"); Assert.AreEqual("Completed", outcomeValue); } @@ -240,7 +240,7 @@ private static void IsFileAndContentEqual(string filePath) } } - private static string? GetElementAtributeValueFromTrx(string trxFileName, string fieldName, string attributeName) + private static string? GetElementAttributeValueFromTrx(string trxFileName, string fieldName, string attributeName) { using FileStream file = File.OpenRead(trxFileName); using XmlReader reader = XmlReader.Create(file);