public void 超复杂的泛型约束() { Type type = typeof(Model_泛型类5 <, , , , , , , , , ,>); _tempOutput.WriteLine(GenericeAnalysis.GetConstrainCode(type, true)); Assert.Equal(@"where T1 : struct where T2 : class where T3 : notnull where T4 : struct where T5 : new() where T6 : Model_泛型类4 where T7 : IEnumerable<int> where T8 : T2 where T9 : class,new() where T10 : Model_泛型类4,IEnumerable<int>,new() ", GenericeAnalysis.GetConstrainCode(type, true)); }