Example #1
0
        public void CreateScale100000()
        {
            var identifier = new MapLeafIdentifier("V31");

            Assert.AreEqual(0.5, identifier.WidthScale);
            Assert.AreEqual(0.5, identifier.HeightScale);
            Assert.AreEqual(new MapLeafIdentifier("V3"), identifier.GetParentIdentifier());
        }
Example #2
0
        public void CreateScale5000()
        {
            var identifier = new MapLeafIdentifier("V3133A3");

            Assert.AreEqual(0.015625, identifier.WidthScale);
            Assert.AreEqual(0.03125, identifier.HeightScale);
            Assert.AreEqual(new MapLeafIdentifier("V3133A"), identifier.GetParentIdentifier());
        }
Example #3
0
        public void CreateScale200000()
        {
            var identifier = new MapLeafIdentifier("V3");

            Assert.AreEqual(1.0, identifier.WidthScale);
            Assert.AreEqual(1.0, identifier.HeightScale);
            Assert.IsNull(identifier.GetParentIdentifier());
        }