Skip to content

Commit

Permalink
Do not use UsingLineBreaks for [Not]BeSameAs
Browse files Browse the repository at this point in the history
  • Loading branch information
jnyrup committed Aug 12, 2024
1 parent 8ab81f7 commit 9879437
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Src/FluentAssertions/Primitives/ReferenceTypeAssertions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public AndConstraint<TAssertions> BeSameAs(TSubject expected,
[StringSyntax("CompositeFormat")] string because = "", params object[] becauseArgs)
{
Execute.Assertion
.UsingLineBreaks
.ForCondition(ReferenceEquals(Subject, expected))
.BecauseOf(because, becauseArgs)
.WithDefaultIdentifier(Identifier)
Expand All @@ -108,7 +107,6 @@ public AndConstraint<TAssertions> NotBeSameAs(TSubject unexpected,
[StringSyntax("CompositeFormat")] string because = "", params object[] becauseArgs)
{
Execute.Assertion
.UsingLineBreaks
.ForCondition(!ReferenceEquals(Subject, unexpected))
.BecauseOf(because, becauseArgs)
.WithDefaultIdentifier(Identifier)
Expand Down

0 comments on commit 9879437

Please sign in to comment.