-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from petroslikidis/feature/assembly-merge
Moved PcAxis.Common and PcAxis.Px.Core into PcAxis.Core
- Loading branch information
Showing
63 changed files
with
14,022 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Imports System.Text | ||
Imports Microsoft.VisualStudio.TestTools.UnitTesting | ||
Imports PCAxis.Paxiom | ||
|
||
Namespace PCAxis.Common.UnitTest | ||
<TestClass> | ||
Public Class EncodingUtilTest | ||
<TestMethod> | ||
Sub ShouldGetEncoding() | ||
|
||
'Arrange | ||
'Get a UTF-32 encoding by codepage. | ||
Dim e1 As System.Text.Encoding | ||
e1 = Encoding.GetEncoding(12000) | ||
|
||
'Act | ||
'Get a UTF-32 encoding by name. | ||
Dim e2 As System.Text.Encoding | ||
e2 = EncodingUtil.GetEncoding("utf-32") | ||
|
||
'Assert | ||
'Check their equality. | ||
Assert.AreEqual(e1, e2) | ||
|
||
End Sub | ||
End Class | ||
|
||
End Namespace | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Imports Microsoft.VisualStudio.TestTools.UnitTesting | ||
Imports PCAxis.Paxiom.Parsers | ||
|
||
Namespace PCAxis.PX.Core.UnitTest | ||
<TestClass> | ||
Public Class PXFileBuilderTest | ||
<TestMethod> | ||
Sub ShouldReturnDescription() | ||
'Arrange | ||
Dim e As PXFileParser = New PXFileParser() | ||
|
||
'Act | ||
Dim testDesc As String = e.Description | ||
|
||
'Assert | ||
Assert.AreEqual(testDesc.ToLower(), "this is the default plugin which reads a classical pc-axis file") | ||
|
||
End Sub | ||
End Class | ||
End Namespace | ||
|
Oops, something went wrong.