Exemplo n.º 1
0
        public void Ctor_XmlOnly_DefaultsSetCorrectly()
        {
            MapnikProvider m = new MapnikProviderBuilder()
                .SetXmlConfig(@"..\..\data\empty.xml");

            Assert.AreEqual("png", m.PngOptions);
            Assert.AreEqual("jpeg", m.JpegOptions);
            Assert.AreEqual(0, m.GridLayerIndex);
            Assert.AreEqual(4, m.GridResolution);
            CollectionAssert.AreEquivalent(new List<string>(), m.GridFields);
        }
Exemplo n.º 2
0
        public void Render_InvalidFormat_Throws()
        {
            MapnikProvider m = new MapnikProviderBuilder()
                .SetXmlConfig(@"..\..\data\empty.xml");

            m.Render(
                new Envelope(0, 0, 0, 0),
                "invalid format",
                256,
                256
            );
        }
Exemplo n.º 3
0
 public void Ctor_NullXml_Throws()
 {
     MapnikProvider m = new MapnikProviderBuilder()
         .SetXmlConfig(null);
 }