Exemple #1
0
        public void If_input_a_valid_multipoint_then_should_get_correct_wkb()
        {
            var multiPoint = new MultiPoint(new List <Point>
            {
                new Point(10, 40),
                new Point(40, 30),
                new Point(20, 20),
                new Point(30, 10)
            });

            var expectWkbHex = "010400000004000000010100000000000000000024400000000000004440010100000000000000000044400000000000003E4001010000000000000000003440000000000000344001010000000000000000003E400000000000002440";

            var hex = multiPoint.ToWkbHex();

            hex.Should().BeEquivalentTo(expectWkbHex);
        }