Update dependencies and migrate tests to TUnit#2479
Merged
MarcelMichau merged 2 commits intomainfrom Jan 29, 2025
Merged
Conversation
Update dependencies and migrate tests to TUnit - Upgraded various packages in `Directory.Packages.props` including `Azure.Identity`, `coverlet.collector`, and multiple `Microsoft.AspNetCore` and `Microsoft.EntityFrameworkCore` packages from `9.0.0` to `9.0.1`. - Updated `Nerdbank.GitVersioning` and several OpenTelemetry packages to their latest versions. - Added `TUnit` as a new testing framework, replacing `Xunit` in test files, and updated assertions accordingly. - Refactored tests in `EndToEndTests.cs`, `SanityTests.cs`, and others to utilize `TUnit` for improved test structure and maintainability. - Removed references to `FluentAssertions` and `Microsoft.NET.Test.Sdk` in favor of `TUnit`. - Updated `packages.lock.json` to reflect the new versions of dependencies and removed old `xunit` references.
Updated `CacheTests.cs`, `IndexPageTests.cs`, and `SwaggerTests.cs` to use properties for `ClientFactory` and `Client` instead of private fields. Replaced FluentAssertions with `Assert.That` for assertions in `CacheTests.cs`. These changes enhance code readability, maintainability, and consistency across test files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update dependencies and migrate tests to TUnit
Directory.Packages.propsincludingAzure.Identity,coverlet.collector, and multipleMicrosoft.AspNetCoreandMicrosoft.EntityFrameworkCorepackages from9.0.0to9.0.1.Nerdbank.GitVersioningand several OpenTelemetry packages to their latest versions.TUnitas a new testing framework, replacingXunitin test files, and updated assertions accordingly.EndToEndTests.cs,SanityTests.cs, and others to utilizeTUnitfor improved test structure and maintainability.FluentAssertionsandMicrosoft.NET.Test.Sdkin favor ofTUnit.packages.lock.jsonto reflect the new versions of dependencies and removed oldxunitreferences.