@@ -115,96 +115,97 @@ public class ValueArrayTestClass01
115
115
public static void testMethod ( )
116
116
{
117
117
byte [ ] b = { 0 } ;
118
- Assert . IsType ( b . GetType ( ) , Type . GetType ( "System.Byte[]" ) ) ;
118
+ Type compareType = Type . GetType ( "System.Byte[]" ) ;
119
+ Assert . IsType ( compareType , b , $ "The type { compareType . Name } is not equal to { b . GetType ( ) . Name } ") ;
119
120
}
120
121
}
121
122
public class ValueArrayTestClass02
122
123
{
123
124
public static void testMethod ( )
124
125
{
125
126
char [ ] c = { 'a' } ;
126
- Assert . IsType ( c . GetType ( ) , Type . GetType ( "System.Char[]" ) ) ;
127
+ Assert . IsType ( Type . GetType ( "System.Char[]" ) , c ) ;
127
128
}
128
129
}
129
130
public class ValueArrayTestClass03
130
131
{
131
132
public static void testMethod ( )
132
133
{
133
134
short [ ] s = { 0 } ;
134
- Assert . IsType ( s . GetType ( ) , Type . GetType ( "System.Int16[]" ) ) ;
135
+ Assert . IsType ( Type . GetType ( "System.Int16[]" ) , s ) ;
135
136
}
136
137
}
137
138
public class ValueArrayTestClass04
138
139
{
139
140
public static void testMethod ( )
140
141
{
141
142
int [ ] i = { 0 } ;
142
- Assert . IsType ( i . GetType ( ) , Type . GetType ( "System.Int32[]" ) ) ;
143
+ Assert . IsType ( Type . GetType ( "System.Int32[]" ) , i ) ;
143
144
}
144
145
}
145
146
public class ValueArrayTestClass05
146
147
{
147
148
public static void testMethod ( )
148
149
{
149
150
long [ ] l = { 0L } ;
150
- Assert . IsType ( l . GetType ( ) , Type . GetType ( "System.Int64[]" ) ) ;
151
+ Assert . IsType ( Type . GetType ( "System.Int64[]" ) , l ) ;
151
152
}
152
153
}
153
154
public class ValueArrayTestClass06
154
155
{
155
156
public static void testMethod ( )
156
157
{
157
158
float [ ] f = { 0.0f } ;
158
- Assert . IsType ( f . GetType ( ) , Type . GetType ( "System.Single[]" ) ) ;
159
+ Assert . IsType ( Type . GetType ( "System.Single[]" ) , f ) ;
159
160
}
160
161
}
161
162
public class ValueArrayTestClass07
162
163
{
163
164
public static void testMethod ( )
164
165
{
165
166
double [ ] d = { 0.0d } ;
166
- Assert . IsType ( d . GetType ( ) , Type . GetType ( "System.Double[]" ) ) ;
167
+ Assert . IsType ( Type . GetType ( "System.Double[]" ) , d ) ;
167
168
}
168
169
}
169
170
public class ValueArrayTestClass09
170
171
{
171
172
public static void testMethod ( )
172
173
{
173
174
bool [ ] b = { true } ;
174
- Assert . IsType ( b . GetType ( ) , Type . GetType ( "System.Boolean[]" ) ) ;
175
+ Assert . IsType ( Type . GetType ( "System.Boolean[]" ) , b ) ;
175
176
}
176
177
}
177
178
178
179
public class ValueArrayTestClass12
179
180
{
180
181
public static void testMethod ( )
181
182
{
182
- string [ ] b = { "string" } ;
183
- Assert . IsType ( b . GetType ( ) , Type . GetType ( "System.String[]" ) ) ;
183
+ string [ ] strArray = { "string" } ;
184
+ Assert . IsType ( Type . GetType ( "System.String[]" ) , strArray ) ;
184
185
}
185
186
}
186
187
public class ValueArrayTestClass13
187
188
{
188
189
public static void testMethod ( )
189
190
{
190
- sbyte [ ] b = { 0 } ;
191
- Assert . IsType ( b . GetType ( ) , Type . GetType ( "System.SByte[]" ) ) ;
191
+ sbyte [ ] sb = { 0 } ;
192
+ Assert . IsType ( Type . GetType ( "System.SByte[]" ) , sb ) ;
192
193
}
193
194
}
194
195
public class ValueArrayTestClass14
195
196
{
196
197
public static void testMethod ( )
197
198
{
198
- ushort [ ] s = { 0 } ;
199
- Assert . IsType ( s . GetType ( ) , Type . GetType ( "System.UInt16[]" ) ) ;
199
+ ushort [ ] us = { 0 } ;
200
+ Assert . IsType ( Type . GetType ( "System.UInt16[]" ) , us ) ;
200
201
}
201
202
}
202
203
public class ValueArrayTestClass15
203
204
{
204
205
public static void testMethod ( )
205
206
{
206
- uint [ ] i = { 0 } ;
207
- Assert . IsType ( i . GetType ( ) , Type . GetType ( "System.UInt32[]" ) ) ;
207
+ uint [ ] ui = { 0 } ;
208
+ Assert . IsType ( Type . GetType ( "System.UInt32[]" ) , ui ) ;
208
209
}
209
210
}
210
211
}
0 commit comments