Skip to content

Commit

Permalink
Use BeFalse in IsRecord assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvatore Isaja committed Oct 12, 2022
1 parent 6a55818 commit 2045c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/FluentAssertions.Specs/Types/TypeExtensionsSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ public void IsRecord_should_detect_records_correctly(Type type, bool expected)
[Fact]
public void When_checking_if_anonymous_type_is_record_it_should_return_false()
{
new { Value = 42 }.GetType().IsRecord().Should().Be(false);
new { Value = 42 }.GetType().IsRecord().Should().BeFalse();
}

[Fact]
public void When_checking_if_class_with_multiple_equality_methods_is_record_it_should_return_false()
{
typeof(ImmutableArray<int>).IsRecord().Should().Be(false);
typeof(ImmutableArray<int>).IsRecord().Should().BeFalse();
}

private static MethodInfo GetFakeConversionOperator(Type type, string name, BindingFlags bindingAttr, Type returnType)
Expand Down

0 comments on commit 2045c6a

Please sign in to comment.