Skip to content

Commit

Permalink
Skip API approval test on non-.NET Core platforms
Browse files Browse the repository at this point in the history
To avoid platform-specific limitations of
the framework.
  • Loading branch information
michaelklishin committed Apr 19, 2020
1 parent c90d126 commit 2f6bf46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/Unit/APIApproval.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ namespace RabbitMQ.Client.Unit
public class APIApproval
{
[Test]
#if !NETCOREAPP
[Ignore("This test is limited to .NET Core targets")]
#endif
public Task Approve()
{
string publicApi = typeof(ConnectionFactory).Assembly.GeneratePublicApi(new ApiGeneratorOptions { ExcludeAttributes = new[] { "System.Runtime.Versioning.TargetFrameworkAttribute" } });
Expand Down

0 comments on commit 2f6bf46

Please sign in to comment.