Beispiel #1
0
        public void Test_S2CellId_EncodeDecodeNoneCell()
        {
            S2CellId none_id = S2CellId.None;
            Encoder  encoder = new();

            none_id.Encode(encoder);
            var decoder = encoder.Decoder();

            var(success, decoded_id) = S2CellId.Decode(decoder);
            Assert.True(success);
            Assert.Equal(none_id, decoded_id);
        }