mirror of https://github.com/abpframework/abp.git
9 changed files with 68 additions and 20 deletions
@ -0,0 +1,20 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using Shouldly; |
||||
|
using Xunit; |
||||
|
|
||||
|
namespace Volo.Abp.Reflection |
||||
|
{ |
||||
|
public class TypeHelper_Tests |
||||
|
{ |
||||
|
[Fact] |
||||
|
public void Should_Generic_Type_From_Nullable() |
||||
|
{ |
||||
|
var nullableType = typeof(Guid?); |
||||
|
var guidType = nullableType.GetFirstGenericArgumentIfNullable(); |
||||
|
|
||||
|
guidType.ShouldBe(typeof(Guid)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue