Skip to content

Commit d5bc9e9

Browse files
committed
Fix code formatting calls (CA2241)
1 parent 1e44069 commit d5bc9e9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildADesktopExe.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,9 +844,10 @@ public void It_generates_supportedRuntime_when_there_is_appconfig_with_supported
844844
Path.Combine(testAsset.TestRoot, "App.Config"));
845845

846846
XElement root = BuildTestAssetGetAppConfig(testAsset);
847+
847848
root.Elements("startup").Single()
848849
.Elements("supportedRuntime").Single()
849-
.Should().HaveAttribute("version", "v999", "It should keep existing supportedRuntime");
850+
.Should().HaveAttributeWithValue("version", "v999", "It should keep existing supportedRuntime");
850851
}
851852

852853
[WindowsOnlyFact]

test/Microsoft.NET.Sdk.Razor.Tests/ReferenceResolverTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void Resolve_Works_WhenAssemblyReferencesAreRecursive_ButAlsoReferencesMv
188188
var assemblies = resolver.ResolveAssemblies();
189189

190190
// Assert
191-
assemblies.Should().Contain("MyCMS", "MyCMS.Core", "MyCoolLibrary", "PresentationFramework", "ReachFramework");
191+
assemblies.Should().Contain(["MyCMS", "MyCMS.Core", "MyCoolLibrary", "PresentationFramework", "ReachFramework"]);
192192
}
193193

194194
public AssemblyItem CreateAssemblyItem(string name, bool isFrameworkReference = false)

test/dotnet.Tests/CommandTests/Tool/Run/ToolRunCommandTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void WhenRunWithRollForwardOptionItShouldIncludeRollForwardInNativeHost()
4040
}, toolRunCommand._allowRollForward);
4141

4242
result.Should().NotBeNull();
43-
result.Args.Should().Contain("--roll-forward", "Major", fakeExecutable.Value);
43+
result.Args.Should().ContainAll("--roll-forward", "Major", fakeExecutable.Value);
4444
}
4545

4646
[Fact]

0 commit comments

Comments
 (0)