diff --git a/Schema.Test/SchemaInterfaceTests.cs b/Schema.Test/SchemaInterfaceTests.cs index 1064790..bbc206d 100644 --- a/Schema.Test/SchemaInterfaceTests.cs +++ b/Schema.Test/SchemaInterfaceTests.cs @@ -30,7 +30,7 @@ public void ParametersKeepDeclarationOrder() Assert.AreSequenceEqual( ExpectedParameterOrder, - function.Parameters.Select(p => p.Name.ToString()).ToArray()); + [.. function.Parameters.Select(p => p.Name.ToString())]); } /// diff --git a/Schema.Test/SchemaSemanticTypeTests.cs b/Schema.Test/SchemaSemanticTypeTests.cs index af00956..d0bee1f 100644 --- a/Schema.Test/SchemaSemanticTypeTests.cs +++ b/Schema.Test/SchemaSemanticTypeTests.cs @@ -70,7 +70,7 @@ public void RefinementResolvesToTheUnderlyingRepresentation() Assert.AreSequenceEqual( ExpectedRefinementChain, - weight.Refines().Select(t => t.Name.ToString()).ToArray()); + [.. weight.Refines().Select(t => t.Name.ToString())]); Assert.IsInstanceOfType(weight.Representation()); } diff --git a/global.json b/global.json index 8ca39a5..b884868 100644 --- a/global.json +++ b/global.json @@ -4,7 +4,7 @@ "rollForward": "latestFeature" }, "msbuild-sdks": { - "MSTest.Sdk": "4.4.0", + "MSTest.Sdk": "4.4.1", "ktsu.Sdk": "2.30.0", "ktsu.Sdk.ConsoleApp": "2.30.0", "ktsu.Sdk.Tool": "2.30.0", diff --git a/tests/Schema.Editor.UITests/DiagnosticsPanelTests.cs b/tests/Schema.Editor.UITests/DiagnosticsPanelTests.cs index 3d2246e..2246e5f 100644 --- a/tests/Schema.Editor.UITests/DiagnosticsPanelTests.cs +++ b/tests/Schema.Editor.UITests/DiagnosticsPanelTests.cs @@ -102,8 +102,8 @@ public void EveryIssueGetsARow() // In any order: the panel sorts its rows by severity, which is what the next test is about. Assert.AreSequenceEqual( - harness.Editor.Diagnostics.Select(i => $"{i.Severity}:{i.Path}").Distinct().ToArray(), - ListedIssues.Distinct().ToArray(), + [.. harness.Editor.Diagnostics.Select(i => $"{i.Severity}:{i.Path}").Distinct()], + [.. ListedIssues.Distinct()], SequenceOrder.InAnyOrder); }