Skip to content

Commit

Permalink
Fix IDE0200 suggestion
Browse files Browse the repository at this point in the history
(cherry picked from commit 534be18)
  • Loading branch information
dimitrietataru committed May 30, 2024
1 parent d2c67ae commit 61ad42b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ace.CSharp.DataFaker.Tests/AbstractDataFakerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal void GivenOfWhenPropertyIsNotConfiguredThenThrowsException()
AbstractDataFaker<FakeEntity> fakeEntity = new FakeEntity();

// Act
var action = () => fakeEntity.Of<BarEntity>();
var action = fakeEntity.Of<BarEntity>;

// Assert
action.Should().Throw<InstanceFakerNotFoundException<BarEntity, FakeEntity>>();
Expand Down
2 changes: 1 addition & 1 deletion src/Ace.CSharp.DataFaker.Tests/FakeOfTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal static void GivenFakeOfWhenContainerIsNotConfiguredThenThrowsException(
// Arrange

// Act
var action = () => Fake.Of<BarDto, FakeDto>();
var action = Fake.Of<BarDto, FakeDto>;

// Assert
action.Should().Throw<StaticFakerNotFoundException<BarDto>>();
Expand Down

0 comments on commit 61ad42b

Please sign in to comment.