Shouldn't this fail? #787
-
Shouldn't this fail? (9).ShouldNotBeAssignableTo<UInt32>(); // Pass
(9).ShouldNotBeAssignableTo<byte>(); // Pass
(0xFF).ShouldNotBeAssignableTo<byte>(); // Pass Shouldly from NuGet.org -- version 3.0.0. |
Beta Was this translation helpful? Give feedback.
Answered by
SimonCropp
Jun 3, 2020
Replies: 2 comments 5 replies
-
ShouldNotBeAssignableTo maps to Type.IsInstanceOfType. so i think the current behavior is correct. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jnm2
-
While i appreciate the answer even if it comes two years late (i do open source as well and best effort is still real effort) and i'm not mad at all, still, reading this out loud doesn't make any sense: (0xFF).ShouldNotBeAssignableTo<byte>(); // Pass |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ShouldNotBeAssignableTo maps to Type.IsInstanceOfType. so i think the current behavior is correct.