public void Given_NullableListType_When_GetUnderlyingType_Invoked_Then_It_Should_Return_Result(Type type, Type expected) { var result = TypeExtensions.GetUnderlyingType(type); result.Should().Be(expected); }
public void Given_NonGenericType_When_GetUnderlyingType_Invoked_Then_It_Should_Return_Null(Type type) { var result = TypeExtensions.GetUnderlyingType(type); result.Should().BeNull(); }