Replies: 1 comment 1 reply
-
You can write the assert a little more succinct as |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a better way to test if type is instance of a generic type then this?
Assert.That(sut.GetType().GetGenericTypeDefinition() == typeof(Result<>), Is.True);
If Result is defined as:
Beta Was this translation helpful? Give feedback.
All reactions