Skip to content

Commit

Permalink
#27: Added test with verification of external libraries public API.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinCelej committed Dec 28, 2023
1 parent cb7b745 commit aa1d219
Show file tree
Hide file tree
Showing 4 changed files with 1,065 additions and 0 deletions.
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);
}
}
Loading

0 comments on commit aa1d219

Please sign in to comment.