FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BaseNcoding/BaseNcoding.Tests/Base64Tests.cs at master · KvanTTT/BaseNcoding · GitHub
KvanTTT
/
BaseNcoding
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
49
Code
Issues
4
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
BaseNcoding
/
BaseNcoding.Tests
/
Base64Tests.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (24 loc) · 537 Bytes
Breadcrumbs
BaseNcoding
/
BaseNcoding.Tests
/
Base64Tests.cs
Copy path
File metadata and controls
27 lines (24 loc) · 537 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
24
25
26
27
using
NUnit
.
Framework
;
using
System
;
using
System
.
Text
;
namespace
BaseNcoding
.
Tests
{
[
TestFixture
]
public
class
Base64Tests
:
BaseTests
{
[
SetUp
]
public
void
SetUp
(
)
{
Converter
=
new
Base64
(
)
;
}
[
TestCase
(
Base64SampleString
)
]
[
TestCase
(
RusString
)
]
[
TestCase
(
GreekString
)
]
public
void
Base64CompareToStandard
(
string
str
)
{
string
encoded
=
Converter
.
EncodeString
(
str
)
;
string
base64Standard
=
Convert
.
ToBase64String
(
Encoding
.
UTF8
.
GetBytes
(
str
)
)
;
Assert
.
AreEqual
(
base64Standard
,
encoded
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL