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>" }, }); }
static IEnumerable <TestCaseData> GetTestData() { return(new TestCaseData[] { new TestCaseData(typeof(int), new DotNetType("System.Int32")), new TestCaseData(typeof(string), new DotNetType("System.String")), new TestCaseData(typeof(DateTime), new DotNetType("System.DateTime")), new TestCaseData(typeof(Guid), new DotNetType("System.Guid")), new TestCaseData(typeof(ConvertTypeToDotNetTypeTest), new DotNetType("Albatross.CodeGen.UnitTest.ConvertTypeToDotNetTypeTest")), new TestCaseData(typeof(int[]), new DotNetType("System.Int32", true, false, null)), new TestCaseData(typeof(IEnumerable <string>), DotNetType.MakeIEnumerable(new DotNetType("System.String"))) }); }
public static IEnumerable <object[]> GetTestData() { return(new List <object[]> { new object[] { typeof(int), new DotNetType("System.Int32") }, new object[] { typeof(string), new DotNetType("System.String") }, new object[] { typeof(DateTime), new DotNetType("System.DateTime") }, new object[] { typeof(Guid), new DotNetType("System.Guid") }, new object[] { typeof(ConvertTypeToDotNetTypeTest), new DotNetType("Albatross.CodeGen.UnitTest.ConvertTypeToDotNetTypeTest") }, new object[] { typeof(int[]), new DotNetType("System.Int32", true, false, null) }, new object[] { typeof(IEnumerable <string>), DotNetType.MakeIEnumerable(new DotNetType("System.String")) } }); }
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>" }, }); }