public static IEnumerable <object[]> Get()
 {
     return(new List <object[]> {
         new object[] { DotNetType.Boolean(), "System.Boolean", },
         new object[] { DotNetType.Byte(), "System.Byte" },
         new object[] { DotNetType.ByteArray(), "System.Byte[]" },
         new object[] { DotNetType.Char(), "System.Char", },
         new object[] { DotNetType.DateTime(), "System.DateTime", },
         new object[] { DotNetType.DateTimeOffset(), "System.DateTimeOffset", },
         new object[] { DotNetType.Decimal(), "System.Decimal", },
         new object[] { DotNetType.Double(), "System.Double", },
         new object[] { DotNetType.Guid(), "System.Guid", },
         new object[] { DotNetType.IDbConnection(), typeof(System.Data.IDbConnection).FullName, },
         new object[] { DotNetType.Integer(), "System.Int32", },
         new object[] { DotNetType.Long(), "System.Int64", },
         new object[] { DotNetType.Short(), "System.Int16", },
         new object[] { DotNetType.Single(), "System.Single", },
         new object[] { DotNetType.String(), "System.String", },
         new object[] { DotNetType.TimeSpan(), "System.TimeSpan", },
         new object[] { DotNetType.Void(), "void", },
         new object[] { DotNetType.MakeIEnumerable(DotNetType.String()), "System.Collections.Generic.IEnumerable<System.String>" },
         new object[] { new DotNetType("System.Int32", true, false, null), "System.Int32[]" },
         new object[] { DotNetType.MakeNullable(DotNetType.Integer()), "System.Nullable<System.Int32>" },
     });
 }
Esempio n. 2
0
 static IEnumerable <TestCaseData> Get()
 {
     return(new TestCaseData[] {
         new TestCaseData(DotNetType.Boolean())
         {
             ExpectedResult = "System.Boolean",
         },
         new TestCaseData(DotNetType.Byte())
         {
             ExpectedResult = "System.Byte"
         },
         new TestCaseData(DotNetType.ByteArray())
         {
             ExpectedResult = "System.Byte[]"
         },
         new TestCaseData(DotNetType.Char())
         {
             ExpectedResult = "System.Char",
         },
         new TestCaseData(DotNetType.DateTime())
         {
             ExpectedResult = "System.DateTime",
         },
         new TestCaseData(DotNetType.DateTimeOffset())
         {
             ExpectedResult = "System.DateTimeOffset",
         },
         new TestCaseData(DotNetType.Decimal())
         {
             ExpectedResult = "System.Decimal",
         },
         new TestCaseData(DotNetType.Double())
         {
             ExpectedResult = "System.Double",
         },
         new TestCaseData(DotNetType.Guid())
         {
             ExpectedResult = "System.Guid",
         },
         new TestCaseData(DotNetType.IDbConnection())
         {
             ExpectedResult = typeof(System.Data.IDbConnection).FullName,
         },
         new TestCaseData(DotNetType.Integer())
         {
             ExpectedResult = "System.Int32",
         },
         new TestCaseData(DotNetType.Long())
         {
             ExpectedResult = "System.Int64",
         },
         new TestCaseData(DotNetType.Short())
         {
             ExpectedResult = "System.Int16",
         },
         new TestCaseData(DotNetType.Single())
         {
             ExpectedResult = "System.Single",
         },
         new TestCaseData(DotNetType.String())
         {
             ExpectedResult = "System.String",
         },
         new TestCaseData(DotNetType.TimeSpan())
         {
             ExpectedResult = "System.TimeSpan",
         },
         new TestCaseData(DotNetType.Void())
         {
             ExpectedResult = "void",
         },
         new TestCaseData(DotNetType.MakeIEnumerable(DotNetType.String()))
         {
             ExpectedResult = "System.Collections.Generic.IEnumerable<System.String>"
         },
         new TestCaseData(new DotNetType("System.Int32", true, false, null))
         {
             ExpectedResult = "System.Int32[]"
         },
         new TestCaseData(DotNetType.MakeNullable(DotNetType.Integer()))
         {
             ExpectedResult = "System.Nullable<System.Int32>"
         },
     });
 }