Commit c5369109 authored by sovietmagic's avatar sovietmagic
Browse files

Unit test added for SvgPointCollection.ToString method

parent addc38a7
......@@ -62,6 +62,7 @@
<Compile Include="PrivateFontsTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SmallEmbeddingImageTest.cs" />
<Compile Include="SvgPointCollectionTests.cs" />
<Compile Include="SvgTestHelper.cs" />
</ItemGroup>
<ItemGroup>
......
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());
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment