From 2de16bc0bf0995aeef0bb9aeb163b257bf89645e Mon Sep 17 00:00:00 2001 From: Ruslan Batkaev Date: Sun, 14 Jan 2024 16:59:52 +0500 Subject: [PATCH] chore: update Microsoft.Build.Traversal SDK version to 4.1.0 (#85) --- .../Formatters/TraversalProjectOutputFormatter.cs | 2 +- .../Formatters/TraversalFormatterTests.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dotnet-affected/Infrastructure/Formatters/TraversalProjectOutputFormatter.cs b/src/dotnet-affected/Infrastructure/Formatters/TraversalProjectOutputFormatter.cs index bcf0585..3938b17 100644 --- a/src/dotnet-affected/Infrastructure/Formatters/TraversalProjectOutputFormatter.cs +++ b/src/dotnet-affected/Infrastructure/Formatters/TraversalProjectOutputFormatter.cs @@ -15,7 +15,7 @@ internal class TraversalProjectOutputFormatter : IOutputFormatter public Task Format(IEnumerable projects) { - var projectRootElement = @""; + var projectRootElement = @""; var stringReader = new StringReader(projectRootElement); var xmlReader = new XmlTextReader(stringReader); var root = ProjectRootElement.Create(xmlReader); diff --git a/test/dotnet-affected.Tests/Formatters/TraversalFormatterTests.cs b/test/dotnet-affected.Tests/Formatters/TraversalFormatterTests.cs index c1ae25d..fc2ad84 100644 --- a/test/dotnet-affected.Tests/Formatters/TraversalFormatterTests.cs +++ b/test/dotnet-affected.Tests/Formatters/TraversalFormatterTests.cs @@ -21,7 +21,7 @@ public async Task Using_single_project_should_contain_project() var output = await formatter.Format(projects); CustomAssertions.LineSequenceEquals(output, - l => Assert.Contains("Microsoft.Build.Traversal/3.0.3", l), + l => Assert.Contains("Microsoft.Build.Traversal/4.1.0", l), l => Assert.Contains("ItemGroup", l), l => Assert.Contains(projectPath, l), l => Assert.Contains("ItemGroup", l), @@ -44,7 +44,7 @@ public async Task Using_multiple_projects_should_contain_them_all() var output = await formatter.Format(projects); CustomAssertions.LineSequenceEquals(output, - l => Assert.Contains("Microsoft.Build.Traversal/3.0.3", l), + l => Assert.Contains("Microsoft.Build.Traversal/4.1.0", l), l => Assert.Contains("ItemGroup", l), l => Assert.Contains(secondProjectPath, l), l => Assert.Contains(firstProjectPath, l),