-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redundant using in Approve_Public_Api (#1390)
- Loading branch information
1 parent
6575e90
commit 072363f
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |