public void JsonSerializationAndDeserializationWorks()
        {
            var target = Ellipsoids.Wgs84;
            var actual = SerializationTester <EarthEllipsoid> .JsonSerializeAndDeserialize(target);

            Assert.AreEqual(target, actual);
        }
Esempio n. 2
0
        public void JsonSerializationAndDeserializationWorks()
        {
            var target = new CircularSurface(Position.FromDegrees(58.1, 11.9), Distance.FromMeters(5));
            var actual = SerializationTester <CircularSurface> .JsonSerializeAndDeserialize(target);

            Assert.AreEqual(target, actual);
        }
        public void JsonSerializationAndDeserializationWorks()
        {
            var target = MapProjections.Sweref99TM;
            var actual = SerializationTester <MapProjection> .JsonSerializeAndDeserialize(target);

            Assert.AreEqual(target, actual);
        }
Esempio n. 4
0
        public void JsonSerializationAndDeserializationWorks()
        {
            var target = new GridCoordinate(123.4, 987.6);
            var actual = SerializationTester <GridCoordinate> .JsonSerializeAndDeserialize(target);

            Assert.AreEqual(target, actual);
        }
        public void JsonSerializationAndDeserializationWorks()
        {
            var target = TestPolygonalSurface;
            var actual = SerializationTester <PolygonalSurface> .JsonSerializeAndDeserialize(target);

            Assert.AreEqual(target, actual);
        }