-
-
Notifications
You must be signed in to change notification settings - Fork 93
-
I have a statement giving me a warning:
// TUnit0300: Generic test method with data source may not be AOT-compatible. All generic type combinations must be known at compile time. [Test] [NotInParallel(nameof(WhenTraversingWithMatch_DoesNotThrowNotFound))] [InstanceMethodDataSource(nameof(PresentObjects))] [Timeout(10_0000)] public async Task WhenTraversingWithMatch_DoesNotThrowNotFound(NodeId id, CancellationToken token){...}
The method itself is contained within an abstract generic test class:
public abstract class NodeTreeTraverserTest<T>(ApplicationFixture<T> fixture) where T : INodeTreeTraverser{...}
I have spent some time trying out a few different things, but I cannot for the life of me understand how I should approach solving this warning? Maybe I lack knowledge within AOT... is there perhaps a good resource that explains why this is a problem, and moreover explains a solution?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
Are you using AOT?
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment