public void CloneTest() { Charset charset1 = new Charset("0Az", 1, 2); Charset charset2 = charset1.Clone() as Charset; Assert.AreEqual(charset1, charset2); Assert.AreEqual(JsonConvert.SerializeObject(charset1), JsonConvert.SerializeObject(charset2)); }