FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/embed_tests/TestPyNumber.cs at master · devtrack/pythonnet · GitHub
devtrack
pythonnet
Repository navigation
Code
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
embed_tests
/
TestPyNumber.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (21 loc) · 465 Bytes
Breadcrumbs
pythonnet
/
src
/
embed_tests
/
TestPyNumber.cs
Copy path
File metadata and controls
23 lines (21 loc) · 465 Bytes
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
using
System
;
using
NUnit
.
Framework
;
using
Python
.
Runtime
;
namespace
Python
.
EmbeddingTest
{
public
class
TestPyNumber
{
[
Test
]
public
void
IsNumberTypeTrue
(
)
{
var
i
=
new
PyInt
(
1
)
;
Assert
.
True
(
PyNumber
.
IsNumberType
(
i
)
)
;
}
[
Test
]
public
void
IsNumberTypeFalse
(
)
{
var
s
=
new
PyString
(
"Foo"
)
;
Assert
.
False
(
PyNumber
.
IsNumberType
(
s
)
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL