public virtual void NegativeAfterPositiveTest() { PathSvgNodeRenderer path = new PathSvgNodeRenderer(); String input = "40-50"; String expected = "40 -50"; String actual = path.SeparateDecimalPoints(input); NUnit.Framework.Assert.AreEqual(expected, actual); }
public virtual void ExponentInNumberTest01() { PathSvgNodeRenderer path = new PathSvgNodeRenderer(); String input = "C 268.88888888888886 67.97916666666663e+10 331.1111111111111 -2.842170943040401e-14 393.3333333333333 -2.842170943040401e-14"; String expected = "C 268.88888888888886 67.97916666666663e+10 331.1111111111111 -2.842170943040401e-14 393.3333333333333 -2.842170943040401e-14"; String actual = path.SeparateDecimalPoints(input); NUnit.Framework.Assert.AreEqual(expected, actual); }
public virtual void DecimalPointParsingMinusTest() { PathSvgNodeRenderer path = new PathSvgNodeRenderer(); String input = "2.35.96 3.25-.25"; String expected = "2.35 .96 3.25 -.25"; String actual = path.SeparateDecimalPoints(input); NUnit.Framework.Assert.AreEqual(expected, actual); }