public void TestDecodeException()
        {
            Exception e = Assert.Throws <Exception>(() => NodeCodec.Deserialize(""));

            Assert.Equal("Deserealization error", e.Message);

            e = Assert.Throws <Exception>(() => NodeCodec.Deserialize("bla bla bla"));
            Assert.Equal("Deserealization error", e.Message);
        }
 private static Node Roundtrip(Node node)
 {
     return(NodeCodec.Deserialize(NodeCodec.Serialize(node)));
 }