Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
b9dd82d
+semver:minor - refactor(assertions): enhance collection assertion ty…
thomhurst Oct 16, 2025
605c4e6
Merge branch 'main' into bug/3401
thomhurst Oct 16, 2025
4618371
refactor(assertions): implement ComparerBasedAssertion and ToleranceB…
thomhurst Oct 16, 2025
2913390
refactor(assertions): simplify assertion linking and enhance type saf…
thomhurst Oct 16, 2025
47d3282
refactor(assertions): introduce ICollectionAssertionSource for enhanc…
thomhurst Oct 16, 2025
d1bf905
refactor(assertions): introduce ContinuationBase for common logic in …
thomhurst Oct 17, 2025
6a791d9
Merge branch 'main' into bug/3401
thomhurst Oct 17, 2025
0c30e20
feat(assertions): introduce dictionary assertions with And/Or chainin…
thomhurst Oct 17, 2025
a6cb4b3
Merge branch 'main' into bug/3401
thomhurst Oct 17, 2025
ca06375
refactor(assertions): enhance collection assertion classes for better…
thomhurst Oct 17, 2025
698e264
Merge branch 'main' into bug/3401
thomhurst Oct 17, 2025
24c081c
feat(assertions): add collection assertion methods for improved type …
thomhurst Oct 17, 2025
0653ee6
Merge branch 'main' into bug/3401
thomhurst Oct 18, 2025
5ed43c1
fix(assertions): update assertions to use IsNotEmpty and HasCount for…
thomhurst Oct 18, 2025
0f7c3a5
fix(assertions): streamline HasCount assertions for clarity and consi…
thomhurst Oct 18, 2025
6dce633
fix(tests): improve assertions in DictionaryCollectionTests for clari…
thomhurst Oct 18, 2025
24b4f52
fix(tests): add assertions for CustomCollection and enhance collectio…
thomhurst Oct 18, 2025
43986aa
fix(assertions): simplify collection assertions to single type parame…
thomhurst Oct 20, 2025
cfd219a
feat(assertions): add HasCount method for fluent count assertions on …
thomhurst Oct 20, 2025
4452dbb
feat(assertions): add MapAsync method for asynchronous value transfor…
thomhurst Oct 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into bug/3401
# Conflicts:
#	TUnit.Assertions/Conditions/DateTimeEqualsAssertion.cs
#	TUnit.Assertions/Conditions/SpecializedEqualityAssertions.cs
#	TUnit.PublicAPI/Tests.Assertions_Library_Has_No_API_Changes.DotNet10_0.verified.txt
#	TUnit.PublicAPI/Tests.Assertions_Library_Has_No_API_Changes.DotNet8_0.verified.txt
#	TUnit.PublicAPI/Tests.Assertions_Library_Has_No_API_Changes.DotNet9_0.verified.txt
#	TUnit.PublicAPI/Tests.Assertions_Library_Has_No_API_Changes.Net4_7.verified.txt
  • Loading branch information
thomhurst committed Oct 18, 2025
commit 0653ee693637ac301c82caf6f86355b09381b2bc
1 change: 1 addition & 0 deletions TUnit.Assertions/Conditions/DateTimeEqualsAssertion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace TUnit.Assertions.Conditions;
/// Asserts that a DateTime is equal to an expected value.
/// Demonstrates custom methods WITHOUT wrappers: .Within() is directly on this class!
/// </summary>
[AssertionExtension("IsEqualTo", OverloadResolutionPriority = 2)]
public class DateTimeEqualsAssertion : ToleranceBasedEqualsAssertion<DateTime, TimeSpan>
{
public DateTimeEqualsAssertion(
Expand Down
6 changes: 6 additions & 0 deletions TUnit.Assertions/Conditions/SpecializedEqualityAssertions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace TUnit.Assertions.Conditions;
/// <summary>
/// Asserts that a DateOnly value is equal to another, with optional tolerance.
/// </summary>
[AssertionExtension("IsEqualTo", OverloadResolutionPriority = 2)]
public class DateOnlyEqualsAssertion : ToleranceBasedEqualsAssertion<DateOnly, int>
{
public DateOnlyEqualsAssertion(
Expand Down Expand Up @@ -62,6 +63,7 @@ protected override string GetExpectation()
/// <summary>
/// Asserts that a TimeOnly value is equal to another, with optional tolerance.
/// </summary>
[AssertionExtension("IsEqualTo", OverloadResolutionPriority = 2)]
public class TimeOnlyEqualsAssertion : ToleranceBasedEqualsAssertion<TimeOnly, TimeSpan>
{
public TimeOnlyEqualsAssertion(
Expand Down Expand Up @@ -102,6 +104,7 @@ protected override string FormatDifferenceMessage(TimeOnly actual, object differ
/// <summary>
/// Asserts that a double value is equal to another, with optional tolerance.
/// </summary>
[AssertionExtension("IsEqualTo", OverloadResolutionPriority = 2)]
public class DoubleEqualsAssertion : ToleranceBasedEqualsAssertion<double, double>
{
public DoubleEqualsAssertion(
Expand Down Expand Up @@ -158,6 +161,7 @@ protected override bool AreExactlyEqual(double actual, double expected)
/// <summary>
/// Asserts that a float value is equal to another, with optional tolerance.
/// </summary>
[AssertionExtension("IsEqualTo", OverloadResolutionPriority = 2)]
public class FloatEqualsAssertion : ToleranceBasedEqualsAssertion<float, float>
{
public FloatEqualsAssertion(
Expand Down Expand Up @@ -273,6 +277,7 @@ protected override string GetExpectation() =>
/// <summary>
/// Asserts that a long value is equal to another, with optional tolerance.
/// </summary>
[AssertionExtension("IsEqualTo", OverloadResolutionPriority = 2)]
public class LongEqualsAssertion : ToleranceBasedEqualsAssertion<long, long>
{
public LongEqualsAssertion(
Expand Down Expand Up @@ -307,6 +312,7 @@ protected override bool AreExactlyEqual(long actual, long expected)
/// <summary>
/// Asserts that a DateTimeOffset value is equal to another, with optional tolerance.
/// </summary>
[AssertionExtension("IsEqualTo", OverloadResolutionPriority = 2)]
public class DateTimeOffsetEqualsAssertion : ToleranceBasedEqualsAssertion<DateTimeOffset, TimeSpan>
{
public DateTimeOffsetEqualsAssertion(
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

Loading
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.