コード例 #1
0
        public void ToSvg_ReturnsValidSvgDoc()
        {
            var grid = new UniversalGrid <string>(10, 15)
            {
                UnitHeight = 50,
                UnitWidth  = 50
            };

            var obj = grid.SetObject("X", 5, 5);

            obj.Colour = new Colour()
            {
                R = 255, A = 255
            };

            var svgDoc = grid.ToSvg();

            Assert.That(svgDoc.Root.Name.LocalName, Is.EqualTo("svg"));

            Console.WriteLine(svgDoc);
        }