forked from jbrwn/NET-Mapnik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstantsTests.cs
35 lines (33 loc) · 1.69 KB
/
ConstantsTests.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NETMapnik;
namespace NETMapnik.Test
{
[TestClass]
public class ConstantsTests
{
[TestMethod]
public void Constants_Get()
{
Assert.IsInstanceOfType(Mapnik.Supports["svg"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["grid"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["cairo"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["cairo_svg"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["cairo_pdf"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["png"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["jpeg"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["tiff"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["webp"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["threadsafe"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Supports["proj4"], typeof(Boolean));
Assert.IsInstanceOfType(Mapnik.Versions["CLR"], typeof(String));
Assert.IsInstanceOfType(Mapnik.Versions["Mapnik"], typeof(String));
Assert.IsInstanceOfType(Mapnik.Versions["Boost"], typeof(String));
Assert.IsInstanceOfType(Mapnik.Paths["Fonts"], typeof(String));
Assert.IsInstanceOfType(Mapnik.Paths["InputPlugins"], typeof(String));
//Ignore key case
Assert.IsInstanceOfType(Mapnik.Versions["MaPnIk"], typeof(String));
Assert.IsInstanceOfType(Mapnik.Supports["CAIRO_SVG"], typeof(Boolean));
}
}
}