Skip to content

Commit

Permalink
Disable DelegateTypesAreValid and DelegateTypesHaveAttributes tests o…
Browse files Browse the repository at this point in the history
…n .NET 7+ build, see comments
  • Loading branch information
maxkatz6 committed Aug 15, 2024
1 parent ac124fe commit 16b81ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Tests/ApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public class ApiTest : BaseTest
public static IEnumerable<object[]> InteropDelegatesData =>
InteropDelegates.Select(m => new object[] { m });

// Targets using USE_LIBRARY_IMPORT don't have delegates generated as they are not used.
#if !USE_LIBRARY_IMPORT
[Trait(Traits.Category.Key, Traits.Category.Values.Api)]
[SkippableFact]
public void DelegateTypesAreValid()
Expand All @@ -71,6 +73,7 @@ public void DelegateTypesHaveAttributes(Type delegateType)
{
Assert.NotNull(delegateType.GetCustomAttribute<UnmanagedFunctionPointerAttribute>());
}
#endif

[Trait(Traits.Category.Key, Traits.Category.Values.Api)]
[SkippableTheory]
Expand Down

0 comments on commit 16b81ad

Please sign in to comment.