-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#27: Added test with verification of external libraries public API.
- Loading branch information
1 parent
cb7b745
commit aa1d219
Showing
4 changed files
with
1,065 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
Documentation/Synergy.Documentation.Tests/Architecture/Public/Package.cs
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Synergy.Documentation.Api; | ||
|
||
namespace Synergy.Documentation.Tests.Architecture.Dependencies; | ||
|
||
[UsesVerify] | ||
public class Package | ||
{ | ||
[Theory] | ||
[InlineData(typeof(UsesVerifyAttribute))] | ||
[InlineData(typeof(TheoryAttribute))] | ||
public async Task Generate(Type type) | ||
{ | ||
// ARRANGE | ||
var assembly = type.Assembly; | ||
|
||
// ACT | ||
var publicApi = ApiDescription.GenerateFor(assembly); | ||
|
||
// ASSERT | ||
await Verifier.Verify(publicApi, "md") | ||
.UseMethodName("of." + assembly.GetName().Name); | ||
} | ||
} |
Oops, something went wrong.