提交 9d88a35d 编写于 作者: G Gen Lu

Remove some test input to reduce execution time

上级 6a26fbc5
...@@ -76,34 +76,16 @@ private static IEnumerable<List<object>> BuiltInTypes ...@@ -76,34 +76,16 @@ private static IEnumerable<List<object>> BuiltInTypes
{ {
get get
{ {
var predefinedTypes = new List<List<string>> var predefinedTypes = new List<string>() { "string", "String", "System.String" };
{
new List<string>()
{ "int", "Int32", "System.Int32" },
new List<string>()
{ "float", "Single", "System.Single" },
new List<string>()
{ "uint", "UInt32", "System.UInt32" },
new List<string>()
{ "bool", "Boolean", "System.Boolean"},
new List<string>()
{ "string", "String", "System.String"},
new List<string>()
{ "object", "Object", "System.Object"},
};
var arraySuffixes = new[] { "", "[]", "[,]" }; var arraySuffixes = new[] { "", "[]", "[,]" };
foreach (var group in predefinedTypes) foreach (var type1 in predefinedTypes)
{ {
foreach (var type1 in group) foreach (var type2 in predefinedTypes)
{ {
foreach (var type2 in group) foreach (var suffix in arraySuffixes)
{ {
foreach (var suffix in arraySuffixes) yield return new List<object>() { type1 + suffix, type2 + suffix };
{
yield return new List<object>() { type1 + suffix, type2 + suffix };
}
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册