From 5958e1ead1563fdbb4b73c5a460272696073e233 Mon Sep 17 00:00:00 2001 From: TheCakeIsNaOH Date: Tue, 22 Nov 2022 19:05:37 -0600 Subject: [PATCH] (#2893) Switch from Should to FluentAssertions This switches chocolatey.tests and chocolatey.tests.integration to use FluentAssertions instead of Should. This is because Should is no longer actively maintained, so it is time to replace it. Only the package and dependencies are switched. The code changes be in the next commit. --- src/chocolatey.tests.integration/App.config | 16 ++++-- .../chocolatey.tests.integration.csproj | 49 +++++++++++++++++-- .../packages.config | 11 ++++- src/chocolatey.tests/App.config | 16 ++++-- src/chocolatey.tests/chocolatey.tests.csproj | 49 +++++++++++++++++-- src/chocolatey.tests/packages.config | 11 ++++- 6 files changed, 136 insertions(+), 16 deletions(-) diff --git a/src/chocolatey.tests.integration/App.config b/src/chocolatey.tests.integration/App.config index 99445ab633..2b2a68fa79 100644 --- a/src/chocolatey.tests.integration/App.config +++ b/src/chocolatey.tests.integration/App.config @@ -1,6 +1,16 @@ - + - + + + + + + + + + + + - + diff --git a/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj b/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj index 1004106cb9..fe674e648c 100644 --- a/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj +++ b/src/chocolatey.tests.integration/chocolatey.tests.integration.csproj @@ -87,6 +87,9 @@ ..\packages\Chocolatey.NuGet.Versioning.3.0.0-alpha-20221202-62\lib\net472\Chocolatey.NuGet.Versioning.dll + + ..\packages\FluentAssertions.6.8.0\lib\net47\FluentAssertions.dll + ..\packages\log4net.2.0.12\lib\net45\log4net.dll @@ -102,18 +105,25 @@ ..\packages\NUnit.3.13.3\lib\net40\nunit.framework.dll - - ..\packages\Should.1.1.20\lib\Should.dll - ..\packages\SimpleInjector.2.8.3\lib\net45\SimpleInjector.dll + + + ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll + True + True + - + + ..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll + True + True + ..\packages\Rx-Core.2.1.30214.0\lib\Net40\System.Reactive.Core.dll @@ -124,8 +134,39 @@ ..\packages\Rx-Linq.2.1.30214.0\lib\Net40\System.Reactive.Linq.dll + + ..\packages\System.Runtime.4.3.1\lib\net462\System.Runtime.dll + True + True + + + ..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll + + + ..\packages\System.Security.Cryptography.Algorithms.4.3.1\lib\net463\System.Security.Cryptography.Algorithms.dll + True + True + + + ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll + True + True + + + ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll + True + True + + + ..\packages\System.Security.Cryptography.X509Certificates.4.3.2\lib\net461\System.Security.Cryptography.X509Certificates.dll + True + True + + + ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll + diff --git a/src/chocolatey.tests.integration/packages.config b/src/chocolatey.tests.integration/packages.config index 42aaa391cf..d02e3f3c3f 100644 --- a/src/chocolatey.tests.integration/packages.config +++ b/src/chocolatey.tests.integration/packages.config @@ -6,6 +6,7 @@ + @@ -15,6 +16,14 @@ - + + + + + + + + + \ No newline at end of file diff --git a/src/chocolatey.tests/App.config b/src/chocolatey.tests/App.config index 99445ab633..2b2a68fa79 100644 --- a/src/chocolatey.tests/App.config +++ b/src/chocolatey.tests/App.config @@ -1,6 +1,16 @@ - + - + + + + + + + + + + + - + diff --git a/src/chocolatey.tests/chocolatey.tests.csproj b/src/chocolatey.tests/chocolatey.tests.csproj index ada5e66eaa..a98fc8f90d 100644 --- a/src/chocolatey.tests/chocolatey.tests.csproj +++ b/src/chocolatey.tests/chocolatey.tests.csproj @@ -86,6 +86,9 @@ ..\packages\Chocolatey.NuGet.Versioning.3.0.0-alpha-20221202-62\lib\net472\Chocolatey.NuGet.Versioning.dll + + ..\packages\FluentAssertions.6.8.0\lib\net47\FluentAssertions.dll + ..\packages\log4net.2.0.12\lib\net45\log4net.dll @@ -101,21 +104,59 @@ ..\packages\NUnit.3.13.3\lib\net40\nunit.framework.dll - - ..\packages\Should.1.1.20\lib\Should.dll - ..\packages\SimpleInjector.2.8.3\lib\net45\SimpleInjector.dll + + + ..\packages\System.IO.4.3.0\lib\net462\System.IO.dll + True + True + - + + ..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll + True + True + + + ..\packages\System.Runtime.4.3.1\lib\net462\System.Runtime.dll + True + True + + + ..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll + + + ..\packages\System.Security.Cryptography.Algorithms.4.3.1\lib\net463\System.Security.Cryptography.Algorithms.dll + True + True + + + ..\packages\System.Security.Cryptography.Encoding.4.3.0\lib\net46\System.Security.Cryptography.Encoding.dll + True + True + + + ..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll + True + True + + + ..\packages\System.Security.Cryptography.X509Certificates.4.3.2\lib\net461\System.Security.Cryptography.X509Certificates.dll + True + True + + + ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll + diff --git a/src/chocolatey.tests/packages.config b/src/chocolatey.tests/packages.config index 9b3aa125ca..0da778b60e 100644 --- a/src/chocolatey.tests/packages.config +++ b/src/chocolatey.tests/packages.config @@ -6,12 +6,21 @@ + - + + + + + + + + + \ No newline at end of file