Reputation: 1
I am trying to write ArchUnitNet tests cases and unbale to find how to support for generic type assignable to
BeAssignableTo("MediatR.IBaseRequest") -> Does not work with
Tried below
.BeAssignableTo("MediatR.IBaseRequest");
Expecting to work with any Generic type check with 1..N params ,<T,T> etc.
Upvotes: 0
Views: 73
Reputation: 1
Using it like this worked:
.BeAssignableTo("MediatR.IBaseRequest<>"); // For single generic type
.BeAssignableTo("MediatR.IBaseRequest<,>"); // For multiple generic types
Upvotes: 0