From 079a12702aef95d510ff84256c8ae6d1532a0e3d Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Fri, 8 Dec 2023 23:21:28 +0100 Subject: [PATCH 1/2] Update nuget versions --- src/CommandLine/CommandLine.csproj | 4 ++-- .../Commands/ListSymbolsCommand.cs | 2 +- src/Documentation/Documentation.csproj | 2 +- .../Analyzers.Tests/Analyzers.Tests.csproj | 6 ++--- src/Tests/CSharp.Tests/CSharp.Tests.csproj | 6 ++--- .../CSharp.Tests/ExpressionChainTests.cs | 24 +++++++++---------- src/Tests/CSharp.Tests/SyntaxKindTests.cs | 4 +--- .../CSharp.Workspaces.Tests.csproj | 6 ++--- .../CodeAnalysis.Analyzers.Tests.csproj | 6 ++--- .../CodeFixes.Tests/CodeFixes.Tests.csproj | 6 ++--- src/Tests/Core.Tests/Core.Tests.csproj | 6 ++--- .../Formatting.Analyzers.Tests.csproj | 6 ++--- .../Refactorings.Tests.csproj | 6 ++--- .../Testing.CSharp.MSTest.csproj | 2 +- .../Testing.CSharp.Xunit.csproj | 2 +- src/Workspaces.Core/Workspaces.Core.csproj | 2 +- 16 files changed, 44 insertions(+), 46 deletions(-) diff --git a/src/CommandLine/CommandLine.csproj b/src/CommandLine/CommandLine.csproj index 31de7f39ce..5394bca232 100644 --- a/src/CommandLine/CommandLine.csproj +++ b/src/CommandLine/CommandLine.csproj @@ -51,8 +51,8 @@ - - + + diff --git a/src/CommandLine/Commands/ListSymbolsCommand.cs b/src/CommandLine/Commands/ListSymbolsCommand.cs index d1bc3e3801..af935582d2 100644 --- a/src/CommandLine/Commands/ListSymbolsCommand.cs +++ b/src/CommandLine/Commands/ListSymbolsCommand.cs @@ -177,7 +177,7 @@ public override async Task ExecuteAsync(ProjectOrSolution project { await using (var fileStream = new FileStream(path, FileMode.Create, FileAccess.Write, FileShare.Read)) await using (var streamWriter = new StreamWriter(fileStream, Encodings.UTF8NoBom)) - using (var jsonWriter = new JsonTextWriter(streamWriter)) + await using (var jsonWriter = new JsonTextWriter(streamWriter)) { string indentChars = format.IndentChars; diff --git a/src/Documentation/Documentation.csproj b/src/Documentation/Documentation.csproj index 12f7f5eacf..024e9f2ff0 100644 --- a/src/Documentation/Documentation.csproj +++ b/src/Documentation/Documentation.csproj @@ -39,7 +39,7 @@ Roslynator.Documentation.DocumentationGenerator - + diff --git a/src/Tests/Analyzers.Tests/Analyzers.Tests.csproj b/src/Tests/Analyzers.Tests/Analyzers.Tests.csproj index 2f608ea820..0dd7b78f0e 100644 --- a/src/Tests/Analyzers.Tests/Analyzers.Tests.csproj +++ b/src/Tests/Analyzers.Tests/Analyzers.Tests.csproj @@ -11,9 +11,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/src/Tests/CSharp.Tests/CSharp.Tests.csproj b/src/Tests/CSharp.Tests/CSharp.Tests.csproj index 43dbb5187a..72694b4303 100644 --- a/src/Tests/CSharp.Tests/CSharp.Tests.csproj +++ b/src/Tests/CSharp.Tests/CSharp.Tests.csproj @@ -11,9 +11,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/src/Tests/CSharp.Tests/ExpressionChainTests.cs b/src/Tests/CSharp.Tests/ExpressionChainTests.cs index 530ac14ce0..03a89b8ebc 100644 --- a/src/Tests/CSharp.Tests/ExpressionChainTests.cs +++ b/src/Tests/CSharp.Tests/ExpressionChainTests.cs @@ -21,7 +21,7 @@ public static void TestExpressionChainEnumerator() Assert.True(en.MoveNext() && en.Current == be2.Left); Assert.True(en.MoveNext() && en.Current == be2.Right); Assert.True(en.MoveNext() && en.Current == be.Right); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -45,7 +45,7 @@ void M(string a, string b, string c, string d) Assert.True(en.MoveNext() && en.Current == be2.Left); Assert.True(en.MoveNext() && en.Current == be2.Right); Assert.True(en.MoveNext() && en.Current == be.Right); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -68,7 +68,7 @@ void M(string a, string b, string c, string d) Assert.True(en.MoveNext() && en.Current == be2.Right); Assert.True(en.MoveNext() && en.Current == be.Right); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -92,7 +92,7 @@ void M(string a, string b, string c, string d) Assert.True(en.MoveNext() && en.Current == be2.Right); Assert.True(en.MoveNext() && en.Current == be.Right); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -113,7 +113,7 @@ void M(string a, string b) ExpressionChain.Enumerator en = new ExpressionChain(be, code.Spans[0]).GetEnumerator(); Assert.True(en.MoveNext() && en.Current == be.Right); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -134,7 +134,7 @@ void M(string a, string b) ExpressionChain.Enumerator en = new ExpressionChain(be, code.Spans[0]).GetEnumerator(); Assert.True(en.MoveNext() && en.Current == be.Left); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -148,7 +148,7 @@ public static void TestExpressionChainReversedEnumerator() Assert.True(en.MoveNext() && en.Current == be.Right); Assert.True(en.MoveNext() && en.Current == be2.Right); Assert.True(en.MoveNext() && en.Current == be2.Left); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -172,7 +172,7 @@ void M(string a, string b, string c) Assert.True(en.MoveNext() && en.Current == be.Right); Assert.True(en.MoveNext() && en.Current == be2.Right); Assert.True(en.MoveNext() && en.Current == be2.Left); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -195,7 +195,7 @@ void M(string a, string b, string c, string d) Assert.True(en.MoveNext() && en.Current == be.Right); Assert.True(en.MoveNext() && en.Current == be2.Right); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -219,7 +219,7 @@ void M(string a, string b, string c, string d) Assert.True(en.MoveNext() && en.Current == be.Right); Assert.True(en.MoveNext() && en.Current == be2.Right); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -240,7 +240,7 @@ void M(string a, string b) ExpressionChain.Reversed.Enumerator en = new ExpressionChain(be, code.Spans[0]).Reverse().GetEnumerator(); Assert.True(en.MoveNext() && en.Current == be.Right); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] @@ -261,7 +261,7 @@ void M(string a, string b) ExpressionChain.Reversed.Enumerator en = new ExpressionChain(be, code.Spans[0]).Reverse().GetEnumerator(); Assert.True(en.MoveNext() && en.Current == be.Left); - Assert.True(!en.MoveNext()); + Assert.False(en.MoveNext()); } [Fact] diff --git a/src/Tests/CSharp.Tests/SyntaxKindTests.cs b/src/Tests/CSharp.Tests/SyntaxKindTests.cs index f3ea1a2a23..c3b7c340f5 100644 --- a/src/Tests/CSharp.Tests/SyntaxKindTests.cs +++ b/src/Tests/CSharp.Tests/SyntaxKindTests.cs @@ -601,9 +601,7 @@ public static void DetectNewSyntaxKinds() if (unknownKinds is not null) { - Assert.True( - false, - $"Unknown enum value(s) {string.Join(", ", unknownKinds.Select(f => $"'{f}'"))}."); + Assert.Fail($"Unknown enum value(s) {string.Join(", ", unknownKinds.Select(f => $"'{f}'"))}."); } } } diff --git a/src/Tests/CSharp.Workspaces.Tests/CSharp.Workspaces.Tests.csproj b/src/Tests/CSharp.Workspaces.Tests/CSharp.Workspaces.Tests.csproj index 6bece60bf7..008404f86c 100644 --- a/src/Tests/CSharp.Workspaces.Tests/CSharp.Workspaces.Tests.csproj +++ b/src/Tests/CSharp.Workspaces.Tests/CSharp.Workspaces.Tests.csproj @@ -11,9 +11,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/src/Tests/CodeAnalysis.Analyzers.Tests/CodeAnalysis.Analyzers.Tests.csproj b/src/Tests/CodeAnalysis.Analyzers.Tests/CodeAnalysis.Analyzers.Tests.csproj index d71efa9844..46b74c3e12 100644 --- a/src/Tests/CodeAnalysis.Analyzers.Tests/CodeAnalysis.Analyzers.Tests.csproj +++ b/src/Tests/CodeAnalysis.Analyzers.Tests/CodeAnalysis.Analyzers.Tests.csproj @@ -11,9 +11,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/src/Tests/CodeFixes.Tests/CodeFixes.Tests.csproj b/src/Tests/CodeFixes.Tests/CodeFixes.Tests.csproj index 1012a9016c..be973f1c7c 100644 --- a/src/Tests/CodeFixes.Tests/CodeFixes.Tests.csproj +++ b/src/Tests/CodeFixes.Tests/CodeFixes.Tests.csproj @@ -11,9 +11,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/src/Tests/Core.Tests/Core.Tests.csproj b/src/Tests/Core.Tests/Core.Tests.csproj index f912775826..02936ea3e6 100644 --- a/src/Tests/Core.Tests/Core.Tests.csproj +++ b/src/Tests/Core.Tests/Core.Tests.csproj @@ -11,9 +11,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/src/Tests/Formatting.Analyzers.Tests/Formatting.Analyzers.Tests.csproj b/src/Tests/Formatting.Analyzers.Tests/Formatting.Analyzers.Tests.csproj index 1340a3b67a..887df84c48 100644 --- a/src/Tests/Formatting.Analyzers.Tests/Formatting.Analyzers.Tests.csproj +++ b/src/Tests/Formatting.Analyzers.Tests/Formatting.Analyzers.Tests.csproj @@ -11,9 +11,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/src/Tests/Refactorings.Tests/Refactorings.Tests.csproj b/src/Tests/Refactorings.Tests/Refactorings.Tests.csproj index 94d7e7d09a..6cfbb57ed3 100644 --- a/src/Tests/Refactorings.Tests/Refactorings.Tests.csproj +++ b/src/Tests/Refactorings.Tests/Refactorings.Tests.csproj @@ -11,9 +11,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/src/Tests/Testing.CSharp.MSTest/Testing.CSharp.MSTest.csproj b/src/Tests/Testing.CSharp.MSTest/Testing.CSharp.MSTest.csproj index b7cc26deed..c2b2d195fb 100644 --- a/src/Tests/Testing.CSharp.MSTest/Testing.CSharp.MSTest.csproj +++ b/src/Tests/Testing.CSharp.MSTest/Testing.CSharp.MSTest.csproj @@ -30,7 +30,7 @@ - + diff --git a/src/Tests/Testing.CSharp.Xunit/Testing.CSharp.Xunit.csproj b/src/Tests/Testing.CSharp.Xunit/Testing.CSharp.Xunit.csproj index 38b5602635..f91f357ee2 100644 --- a/src/Tests/Testing.CSharp.Xunit/Testing.CSharp.Xunit.csproj +++ b/src/Tests/Testing.CSharp.Xunit/Testing.CSharp.Xunit.csproj @@ -30,7 +30,7 @@ - + diff --git a/src/Workspaces.Core/Workspaces.Core.csproj b/src/Workspaces.Core/Workspaces.Core.csproj index aa578f3915..04cef9318f 100644 --- a/src/Workspaces.Core/Workspaces.Core.csproj +++ b/src/Workspaces.Core/Workspaces.Core.csproj @@ -34,7 +34,7 @@ - + From 23330cf00adb70778922473444ec219d0a30520e Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Sat, 9 Dec 2023 00:53:23 +0100 Subject: [PATCH 2/2] update --- ChangeLog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ChangeLog.md b/ChangeLog.md index 746500a917..4bc6d1e6dc 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Replace type declaration's empty braces with semicolon ([RCS1251](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1251) ([PR](https://github.com/dotnet/roslynator/pull/1323), [PR](https://github.com/dotnet/roslynator/pull/1327)) +- [TestFramework] Bump `MSTest.TestFramerk` to `3.1.1` ([PR](https://github.com/dotnet/roslynator/pull/1332)) +- [TestFramework] Bump `xunit.assert` to `2.6.2` ([PR](https://github.com/dotnet/roslynator/pull/1332)) ## [4.7.0] - 2023-12-03