Skip to content

Commit

Permalink
redundant using in Approve_Public_Api (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Feb 17, 2024
1 parent 6575e90 commit 072363f
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
using PublicApiGenerator;
using Humanizer;
using PublicApiGenerator;

namespace Humanizer.Tests.ApiApprover
public class PublicApiApprovalTest
{
public class PublicApiApprovalTest
[Fact]
public Task Approve_Public_Api()
{
[Fact]
[UseCulture("en-US")]
public Task Approve_Public_Api()
{
var publicApi = typeof(StringHumanizeExtensions).Assembly.GeneratePublicApi();
var publicApi = typeof(StringHumanizeExtensions).Assembly.GeneratePublicApi();

return Verifier.Verify(publicApi)
.ScrubLinesContaining("CommitHash", "RepositoryUrl")
.UniqueForTargetFrameworkAndVersion();
}
return Verify(publicApi)
.ScrubLinesContaining("CommitHash", "RepositoryUrl")
.UniqueForTargetFrameworkAndVersion();
}
}
}

0 comments on commit 072363f

Please sign in to comment.