Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
c5369109
Commit
c5369109
authored
Sep 14, 2016
by
sovietmagic
Browse files
Unit test added for SvgPointCollection.ToString method
parent
addc38a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Tests/Svg.UnitTests/Svg.UnitTests.csproj
View file @
c5369109
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
<Compile
Include=
"PrivateFontsTests.cs"
/>
<Compile
Include=
"PrivateFontsTests.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"Properties\AssemblyInfo.cs"
/>
<Compile
Include=
"SmallEmbeddingImageTest.cs"
/>
<Compile
Include=
"SmallEmbeddingImageTest.cs"
/>
<Compile
Include=
"SvgPointCollectionTests.cs"
/>
<Compile
Include=
"SvgTestHelper.cs"
/>
<Compile
Include=
"SvgTestHelper.cs"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
Tests/Svg.UnitTests/SvgPointCollectionTests.cs
0 → 100644
View file @
c5369109
using
Microsoft.VisualStudio.TestTools.UnitTesting
;
namespace
Svg.UnitTests
{
[
TestClass
]
public
class
SvgPointCollectionTests
{
[
TestMethod
]
public
void
ToStringReturnsValidString
()
{
var
collection
=
new
SvgPointCollection
{
new
SvgUnit
(
1.6f
),
new
SvgUnit
(
3.2f
),
new
SvgUnit
(
1.2f
),
new
SvgUnit
(
5f
)
};
Assert
.
AreEqual
(
"1.6,3.2 1.2,5"
,
collection
.
ToString
());
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment