public void DeserializeData()
        {
            char i      = 'p';
            var  serdes = new CharSerDes();
            var  r      = serdes.Deserialize(serdes.Serialize(i, new Confluent.Kafka.SerializationContext()), new Confluent.Kafka.SerializationContext());

            Assert.IsNotNull(r);
            Assert.AreEqual(i, r);
        }
Esempio n. 2
0
        public void DeserializeData()
        {
            char i      = 'p';
            var  serdes = new CharSerDes();
            var  r      = serdes.Deserialize(serdes.Serialize(i));

            Assert.IsNotNull(r);
            Assert.AreEqual(i, r);
        }
        public void SerializeData()
        {
            char i = 'b';

            byte[] b      = new byte[] { 98, 0 };
            var    serdes = new CharSerDes();
            var    r      = serdes.Serialize(i, new Confluent.Kafka.SerializationContext());

            Assert.IsNotNull(r);
            Assert.AreEqual(b, r);
        }
Esempio n. 4
0
        public void SerializeData()
        {
            char i = 'b';

            byte[] b      = new byte[] { 98, 0 };
            var    serdes = new CharSerDes();
            var    r      = serdes.Serialize(i);

            Assert.IsNotNull(r);
            Assert.AreEqual(b, r);
        }