using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Xml; namespace Svg.UnitTests { [TestClass] public class SvgTextTests { [TestMethod] [Ignore] public void TextPropertyAffectsSvgOutput() { // FIXME: test currently times out, maybe regression var document = new SvgDocument(); document.Children.Add(new SvgText { Text = "test1" }); using(var stream = new MemoryStream()) { document.Write(stream); stream.Position = 0; var xmlDoc = new XmlDocument(); xmlDoc.Load(stream); Assert.AreEqual("test1", xmlDoc.DocumentElement.FirstChild.InnerText); } } } }