Skip to content

Commit

Permalink
SAVEPOINT
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisdoomen committed Aug 19, 2023
1 parent badbd3e commit 06fd3c2
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 82 deletions.
12 changes: 11 additions & 1 deletion Src/FluentAssertions/AssertionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@ static AssertionOptions()
EquivalencyPlan = new EquivalencyPlan();
}

/// <summary>
/// Creates a clone of the default options and allows the caller to modify them.
/// </summary>
public static EquivalencyAssertionOptions<T> CloneDefaults<T>()
{
return new EquivalencyAssertionOptions<T>(defaults);
}

internal static TOptions CloneDefaults<T, TOptions>(Func<EquivalencyAssertionOptions, TOptions> predicate)
/// <summary>
/// Creates a clone of the default options and allows the caller to modify them.
/// </summary>
/// <remarks>
/// This overload is meant for libraries that want to provide more specialized versions of <see cref="EquivalencyAssertionOptions"/>.
/// </remarks>
/// <param name="predicate">The predicate that allows the caller to modify the clone of the defaults before returning it</param>
public static TOptions CloneDefaults<T, TOptions>(Func<EquivalencyAssertionOptions, TOptions> predicate)
where TOptions : EquivalencyAssertionOptions<T>
{
Guard.ThrowIfArgumentIsNull(predicate);
Expand Down
69 changes: 0 additions & 69 deletions Src/FluentAssertions/Common/ReadOnlyNonGenericCollectionWrapper.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,6 @@ namespace FluentAssertions.Equivalency
public TSelf IncludingInternalProperties() { }
public TSelf IncludingNestedObjects() { }
public TSelf IncludingProperties() { }
public TSelf RespectingDeclaredTypes() { }
public TSelf RespectingRuntimeTypes() { }
public TSelf ThrowingOnMissingMembers() { }
public override string ToString() { }
public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1073,8 +1073,6 @@ namespace FluentAssertions.Equivalency
public TSelf IncludingInternalProperties() { }
public TSelf IncludingNestedObjects() { }
public TSelf IncludingProperties() { }
public TSelf RespectingDeclaredTypes() { }
public TSelf RespectingRuntimeTypes() { }
public TSelf ThrowingOnMissingMembers() { }
public override string ToString() { }
public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,6 @@ namespace FluentAssertions.Equivalency
public TSelf IncludingInternalProperties() { }
public TSelf IncludingNestedObjects() { }
public TSelf IncludingProperties() { }
public TSelf RespectingDeclaredTypes() { }
public TSelf RespectingRuntimeTypes() { }
public TSelf ThrowingOnMissingMembers() { }
public override string ToString() { }
public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,6 @@ namespace FluentAssertions.Equivalency
public TSelf IncludingInternalProperties() { }
public TSelf IncludingNestedObjects() { }
public TSelf IncludingProperties() { }
public TSelf RespectingDeclaredTypes() { }
public TSelf RespectingRuntimeTypes() { }
public TSelf ThrowingOnMissingMembers() { }
public override string ToString() { }
public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1053,8 +1053,6 @@ namespace FluentAssertions.Equivalency
public TSelf IncludingInternalProperties() { }
public TSelf IncludingNestedObjects() { }
public TSelf IncludingProperties() { }
public TSelf RespectingDeclaredTypes() { }
public TSelf RespectingRuntimeTypes() { }
public TSelf ThrowingOnMissingMembers() { }
public override string ToString() { }
public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,6 @@ namespace FluentAssertions.Equivalency
public TSelf IncludingInternalProperties() { }
public TSelf IncludingNestedObjects() { }
public TSelf IncludingProperties() { }
public TSelf RespectingDeclaredTypes() { }
public TSelf RespectingRuntimeTypes() { }
public TSelf ThrowingOnMissingMembers() { }
public override string ToString() { }
public TSelf Using(FluentAssertions.Equivalency.IEquivalencyStep equivalencyStep) { }
Expand Down

0 comments on commit 06fd3c2

Please sign in to comment.