FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/testing/arraytest.cs at net8.0 · pythonnet/pythonnet · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
pythonnet
/
pythonnet
Public
Notifications
You must be signed in to change notification settings
Fork
780
Star
5.5k
Code
Issues
153
Pull requests
12
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
testing
/
arraytest.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
329 lines (254 loc) · 5.97 KB
Breadcrumbs
pythonnet
/
src
/
testing
/
arraytest.cs
Copy path
File metadata and controls
329 lines (254 loc) · 5.97 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
namespace
Python
.
Test
{
/// <summary>
/// Supports units tests for indexer access.
/// </summary>
public
class
PublicArrayTest
{
public
int
[
]
items
;
public
PublicArrayTest
(
)
{
items
=
new
int
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
ProtectedArrayTest
{
protected
int
[
]
items
;
public
ProtectedArrayTest
(
)
{
items
=
new
int
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
InternalArrayTest
{
internal
int
[
]
items
;
public
InternalArrayTest
(
)
{
items
=
new
int
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
PrivateArrayTest
{
private
int
[
]
items
;
public
PrivateArrayTest
(
)
{
items
=
new
int
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
BooleanArrayTest
{
public
bool
[
]
items
;
public
BooleanArrayTest
(
)
{
items
=
new
bool
[
5
]
{
true
,
false
,
true
,
false
,
true
}
;
}
}
public
class
ByteArrayTest
{
public
byte
[
]
items
;
public
ByteArrayTest
(
)
{
items
=
new
byte
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
SByteArrayTest
{
public
sbyte
[
]
items
;
public
SByteArrayTest
(
)
{
items
=
new
sbyte
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
CharArrayTest
{
public
char
[
]
items
;
public
CharArrayTest
(
)
{
items
=
new
char
[
5
]
{
'a'
,
'b'
,
'c'
,
'd'
,
'e'
}
;
}
}
public
class
Int16ArrayTest
{
public
short
[
]
items
;
public
Int16ArrayTest
(
)
{
items
=
new
short
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
Int32ArrayTest
{
public
int
[
]
items
;
public
Int32ArrayTest
(
)
{
items
=
new
int
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
Int64ArrayTest
{
public
long
[
]
items
;
public
Int64ArrayTest
(
)
{
items
=
new
long
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
UInt16ArrayTest
{
public
ushort
[
]
items
;
public
UInt16ArrayTest
(
)
{
items
=
new
ushort
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
UInt32ArrayTest
{
public
uint
[
]
items
;
public
UInt32ArrayTest
(
)
{
items
=
new
uint
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
UInt64ArrayTest
{
public
ulong
[
]
items
;
public
UInt64ArrayTest
(
)
{
items
=
new
ulong
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
SingleArrayTest
{
public
float
[
]
items
;
public
SingleArrayTest
(
)
{
items
=
new
float
[
5
]
{
0.0F
,
1.0F
,
2.0F
,
3.0F
,
4.0F
}
;
}
}
public
class
DoubleArrayTest
{
public
double
[
]
items
;
public
DoubleArrayTest
(
)
{
items
=
new
double
[
5
]
{
0.0
,
1.0
,
2.0
,
3.0
,
4.0
}
;
}
}
public
class
DecimalArrayTest
{
public
decimal
[
]
items
;
public
DecimalArrayTest
(
)
{
items
=
new
decimal
[
5
]
{
0
,
1
,
2
,
3
,
4
}
;
}
}
public
class
StringArrayTest
{
public
string
[
]
items
;
public
StringArrayTest
(
)
{
items
=
new
string
[
5
]
{
"0"
,
"1"
,
"2"
,
"3"
,
"4"
}
;
}
}
public
class
EnumArrayTest
{
public
ShortEnum
[
]
items
;
public
EnumArrayTest
(
)
{
items
=
new
ShortEnum
[
5
]
{
ShortEnum
.
Zero
,
ShortEnum
.
One
,
ShortEnum
.
Two
,
ShortEnum
.
Three
,
ShortEnum
.
Four
}
;
}
}
public
class
NullArrayTest
{
public
object
[
]
items
;
public
object
[
]
empty
;
public
NullArrayTest
(
)
{
items
=
new
object
[
5
]
{
null
,
null
,
null
,
null
,
null
}
;
empty
=
new
object
[
0
]
{
}
;
}
}
public
class
ObjectArrayTest
{
public
object
[
]
items
;
public
ObjectArrayTest
(
)
{
items
=
new
object
[
5
]
;
items
[
0
]
=
new
Spam
(
"0"
)
;
items
[
1
]
=
new
Spam
(
"1"
)
;
items
[
2
]
=
new
Spam
(
"2"
)
;
items
[
3
]
=
new
Spam
(
"3"
)
;
items
[
4
]
=
new
Spam
(
"4"
)
;
}
}
public
class
InterfaceArrayTest
{
public
ISpam
[
]
items
;
public
InterfaceArrayTest
(
)
{
items
=
new
ISpam
[
5
]
;
items
[
0
]
=
new
Spam
(
"0"
)
;
items
[
1
]
=
new
Spam
(
"1"
)
;
items
[
2
]
=
new
Spam
(
"2"
)
;
items
[
3
]
=
new
Spam
(
"3"
)
;
items
[
4
]
=
new
Spam
(
"4"
)
;
}
}
public
class
TypedArrayTest
{
public
Spam
[
]
items
;
public
TypedArrayTest
(
)
{
items
=
new
Spam
[
5
]
;
items
[
0
]
=
new
Spam
(
"0"
)
;
items
[
1
]
=
new
Spam
(
"1"
)
;
items
[
2
]
=
new
Spam
(
"2"
)
;
items
[
3
]
=
new
Spam
(
"3"
)
;
items
[
4
]
=
new
Spam
(
"4"
)
;
}
}
public
class
MultiDimensionalArrayTest
{
public
int
[
,
]
items
;
public
MultiDimensionalArrayTest
(
)
{
items
=
new
int
[
5
,
5
]
{
{
0
,
1
,
2
,
3
,
4
}
,
{
5
,
6
,
7
,
8
,
9
}
,
{
10
,
11
,
12
,
13
,
14
}
,
{
15
,
16
,
17
,
18
,
19
}
,
{
20
,
21
,
22
,
23
,
24
}
}
;
}
}
public
class
ArrayConversionTest
{
public
static
Spam
[
]
EchoRange
(
Spam
[
]
items
)
{
return
items
;
}
public
static
Spam
[
,
]
EchoRangeMD
(
Spam
[
,
]
items
)
{
return
items
;
}
public
static
Spam
[
]
[
]
EchoRangeAA
(
Spam
[
]
[
]
items
)
{
return
items
;
}
}
public
struct
Point
{
public
Point
(
float
x
,
float
y
)
{
X
=
x
;
Y
=
y
;
}
public
float
X
{
get
;
set
;
}
public
float
Y
{
get
;
set
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL