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 18, 2024
1 parent 8d6e447 commit 796ef2e
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 @@ -81,7 +81,6 @@ public AndConstraint<TAssertions> NotBeNull(string because = "", params object[]
public AndConstraint<TAssertions> BeSameAs(TSubject expected, string because = "", params object[] becauseArgs)
{
Execute.Assertion
.UsingLineBreaks
.ForCondition(ReferenceEquals(Subject, expected))
.BecauseOf(because, becauseArgs)
.WithDefaultIdentifier(Identifier)
Expand All @@ -104,7 +103,6 @@ public AndConstraint<TAssertions> BeSameAs(TSubject expected, string because = "
public AndConstraint<TAssertions> NotBeSameAs(TSubject unexpected, string because = "", params object[] becauseArgs)
{
Execute.Assertion
.UsingLineBreaks
.ForCondition(!ReferenceEquals(Subject, unexpected))
.BecauseOf(because, becauseArgs)
.WithDefaultIdentifier(Identifier)
Expand Down

0 comments on commit 796ef2e

Please sign in to comment.