Skip to content

Commit

Permalink
Made the equivalency validator core internal
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisdoomen committed Nov 30, 2024
1 parent 7f032af commit 9810bf4
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Src/FluentAssertions/Equivalency/EquivalencyValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace FluentAssertions.Equivalency;
/// <summary>
/// Is responsible for validating the equivalency of a subject with another object.
/// </summary>
public class EquivalencyValidator : IValidateChildNodeEquivalency
internal class EquivalencyValidator : IValidateChildNodeEquivalency
{
private const int MaxDepth = 10;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -713,12 +713,6 @@ namespace FluentAssertions.Equivalency
public bool IsCyclicReference(object expectation) { }
public override string ToString() { }
}
public class EquivalencyValidator : FluentAssertions.Equivalency.IValidateChildNodeEquivalency
{
public EquivalencyValidator() { }
public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { }
public void AssertEquivalencyOf(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { }
}
public delegate string GetSubjectId();
public interface IAssertionContext<TSubject>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,12 +726,6 @@ namespace FluentAssertions.Equivalency
public bool IsCyclicReference(object expectation) { }
public override string ToString() { }
}
public class EquivalencyValidator : FluentAssertions.Equivalency.IValidateChildNodeEquivalency
{
public EquivalencyValidator() { }
public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { }
public void AssertEquivalencyOf(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { }
}
public delegate string GetSubjectId();
public interface IAssertionContext<TSubject>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,12 +705,6 @@ namespace FluentAssertions.Equivalency
public bool IsCyclicReference(object expectation) { }
public override string ToString() { }
}
public class EquivalencyValidator : FluentAssertions.Equivalency.IValidateChildNodeEquivalency
{
public EquivalencyValidator() { }
public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { }
public void AssertEquivalencyOf(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { }
}
public delegate string GetSubjectId();
public interface IAssertionContext<TSubject>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -713,12 +713,6 @@ namespace FluentAssertions.Equivalency
public bool IsCyclicReference(object expectation) { }
public override string ToString() { }
}
public class EquivalencyValidator : FluentAssertions.Equivalency.IValidateChildNodeEquivalency
{
public EquivalencyValidator() { }
public void AssertEquality(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.EquivalencyValidationContext context) { }
public void AssertEquivalencyOf(FluentAssertions.Equivalency.Comparands comparands, FluentAssertions.Equivalency.IEquivalencyValidationContext context) { }
}
public delegate string GetSubjectId();
public interface IAssertionContext<TSubject>
{
Expand Down
3 changes: 2 additions & 1 deletion docs/_pages/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ sidebar:
* All assertions that support chaining using the `.Which` construct will now amend the caller identifier - [2539](https://github.com/fluentassertions/pull/2539)
* Introduced a `MethodInfoFormatter` and improved the `PropertyInfoFormatter` - [2539](https://github.com/fluentassertions/pull/2539)
* `Excluding()` / `For().Exclude()` and `Including()` on `BeEquivalentTo()` now also accepts an anonymous object to include/exclude multiple members at once - [#2488](https://github.com/fluentassertions/fluentassertions/pull/2488)
* You can exclude explicitly implemented properties from `BeEquivalentTo` via `ExcludingExplicitlyImplementedProperties` - [9999](https://github.com/fluentassertions/pull/9999)
* You can exclude explicitly implemented properties from `BeEquivalentTo` via `ExcludingExplicitlyImplementedProperties` - [2851](https://github.com/fluentassertions/pull/2851)

### Fixes
* Fixed formatting error when checking nullable `DateTimeOffset` with
Expand Down Expand Up @@ -104,6 +104,7 @@ sidebar:
* Unused constructors have been removed.
* Methods overwritten in `GenericAsyncFunctionAssertions` has been moved to `NonGenericAsyncFunctionAssertions`.
* Moved the non-generic `NotThrow` and `NotThrowAfter` from `DelegateAssertions<TDelegate, TAssertions>` to `ActionAssertions` - [#2371](https://github.com/fluentassertions/fluentassertions/pull/2371)
* Made `EquivalencyValidator` `internal` - [#2854](https://github.com/fluentassertions/fluentassertions/pull/2854)

### Fixes

Expand Down

0 comments on commit 9810bf4

Please sign in to comment.