示例#1
0
        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);
        }
示例#2
0
        public void Given_NonGenericType_When_GetUnderlyingType_Invoked_Then_It_Should_Return_Null(Type type)
        {
            var result = TypeExtensions.GetUnderlyingType(type);

            result.Should().BeNull();
        }