@@ -20,17 +20,48 @@ public void TestUUIDGeneration()
2020 ) ;
2121 }
2222
23- [ TestCase ( typeof ( IdTests ) , "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests" ) ]
24- [ TestCase ( typeof ( ClassWithoutNamespace ) , "Allure.Net.Commons.Tests:ClassWithoutNamespace" ) ]
25- [ TestCase ( typeof ( MyClass ) , "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" ) ]
26- [ TestCase ( typeof ( MyClass < > ) , "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`1[T]" ) ]
27- [ TestCase ( typeof ( MyClass < string > ) , "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`1[System.String]" ) ]
23+ [ TestCase (
24+ typeof ( IdTests ) ,
25+ "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests" ,
26+ TestName = "FullNameOfNonGenericClass"
27+ ) ]
28+ [ TestCase (
29+ typeof ( ClassWithoutNamespace ) ,
30+ "Allure.Net.Commons.Tests:ClassWithoutNamespace" ,
31+ TestName = "FullNameOfClassWithNoNamespace"
32+ ) ]
33+ [ TestCase (
34+ typeof ( MyClass ) ,
35+ "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" ,
36+ TestName = "FullNameOfNestedClass"
37+ ) ]
38+ [ TestCase (
39+ typeof ( MyClass < > ) ,
40+ "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`1[T]" ,
41+ TestName = "FullNameOfNestedGenericClassDefinition"
42+ ) ]
43+ [ TestCase (
44+ typeof ( MyClass < string > ) ,
45+ "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`1[System.String]" ,
46+ TestName = "FullNameOfNestedConstructedGenericClass"
47+ ) ]
2848 [ TestCase (
2949 typeof ( MyClass < MyClass < string , int > , MyClass < MyClass > > ) ,
3050 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`2[" +
3151 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`2[System.String,System.Int32]," +
3252 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`1[" +
33- "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass]]"
53+ "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass]]" ,
54+ TestName = "FullNameOfComplexConstructedGenericClass"
55+ ) ]
56+ [ TestCase (
57+ typeof ( MyClass < > . Nested ) ,
58+ "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`1+Nested[T]" ,
59+ TestName = "FullNameOfNestedClassOfGenericClassDefinition"
60+ ) ]
61+ [ TestCase (
62+ typeof ( MyClass < int > . Nested ) ,
63+ "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`1+Nested[System.Int32]" ,
64+ TestName = "FullNameOfNestedClassOfConstructedGenericClass"
3465 ) ]
3566 public void TestFullNameFromClass ( Type targetClass , string expectedFullName )
3667 {
@@ -55,6 +86,7 @@ internal void MethodWithArgumentOfGenericUserType<T>(MyClass<T> _) { }
5586
5687 class MyClass < T >
5788 {
89+ public class Nested { }
5890 internal void GenericMethodOfGenericClass < V > ( List < T > _ , List < V > __ ) { }
5991 }
6092
@@ -63,21 +95,21 @@ class MyClass<T1, T2> { }
6395 [ TestCase (
6496 nameof ( MyClass . ParameterlessMethod ) ,
6597 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass.ParameterlessMethod()" ,
66- TestName = "ParameterlessMethod "
98+ TestName = "FullNameOfParameterlessMethod "
6799 ) ]
68100 [ TestCase (
69101 nameof ( MyClass . MethodWithParameterOfBuiltInType ) ,
70102 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" +
71103 ".MethodWithParameterOfBuiltInType(System.Int32)" ,
72- TestName = "MethodWithParameterOfBuiltInType "
104+ TestName = "FullNameOfMethodWithParameterOfBuiltInType "
73105 ) ]
74106 [ TestCase (
75107 nameof ( MyClass . MethodWithParameterOfUserType ) ,
76108 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" +
77109 ".MethodWithParameterOfUserType(" +
78110 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" +
79111 ")" ,
80- TestName = "MethodWithParameterOfUserType "
112+ TestName = "FullNameOfMethodWithParameterOfUserType "
81113 ) ]
82114 [ TestCase (
83115 nameof ( MyClass . MethodWithTwoParameters ) ,
@@ -86,41 +118,41 @@ class MyClass<T1, T2> { }
86118 "System.Int32," +
87119 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" +
88120 ")" ,
89- TestName = "MethodWithTwoParameters "
121+ TestName = "FullNameOfMethodWithTwoParameters "
90122 ) ]
91123 [ TestCase (
92124 nameof ( MyClass . MethodWithRefParameter ) ,
93125 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" +
94126 ".MethodWithRefParameter(System.Int32&)" ,
95- TestName = "MethodWithRefParameter "
127+ TestName = "FullNameOfMethodWithRefParameter "
96128 ) ]
97129 [ TestCase (
98130 nameof ( MyClass . MethodWithGenericParameter ) ,
99131 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" +
100132 ".MethodWithGenericParameter[T]()" ,
101- TestName = "MethodWithGenericParameter "
133+ TestName = "FullNameOfMethodWithGenericParameter "
102134 ) ]
103135 [ TestCase (
104136 nameof ( MyClass . MethodWithArgumentOfGenericType ) ,
105137 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" +
106138 ".MethodWithArgumentOfGenericType[T](T)" ,
107- TestName = "MethodWithArgumentOfGenericType "
139+ TestName = "FullNameOfMethodWithArgumentOfGenericType "
108140 ) ]
109141 [ TestCase (
110142 nameof ( MyClass . MethodWithArgumentOfTypeParametrizedByGenericType ) ,
111143 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" +
112144 ".MethodWithArgumentOfTypeParametrizedByGenericType[T](" +
113145 "System.Collections.Generic.Dictionary`2[System.Int32,T]" +
114146 ")" ,
115- TestName = "MethodWithArgumentOfTypeParametrizedByGenericType "
147+ TestName = "FullNameOfMethodWithArgumentOfTypeParametrizedByGenericType "
116148 ) ]
117149 [ TestCase (
118150 nameof ( MyClass . MethodWithArgumentOfGenericUserType ) ,
119151 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass" +
120152 ".MethodWithArgumentOfGenericUserType[T](" +
121153 "Allure.Net.Commons.Tests:Allure.Net.Commons.Tests.FunctionTests.IdTests+MyClass`1[T]" +
122154 ")" ,
123- TestName = "MethodWithArgumentOfGenericUserType "
155+ TestName = "FullNameOfMethodWithArgumentOfGenericUserType "
124156 ) ]
125157 public void FullNameFromMethod ( string methodName , string expectedFullName )
126158 {
0 commit comments