-
-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
We have a value returned from method which works with generic, so we want to check the returned type and seems that DateTime
doesn't work in the same way of other types.
(assign null
is only for example)
// This works
string? a = null;
await Assert.That(a).IsTypeOf<DateTime>();
// This not compile
DateTime? b = null;
await Assert.That(b).IsTypeOf<DateTime>();
Metadata
Metadata
Assignees
Labels
No labels