public void Encode8859_1Charackter() { const char charackter = 'A'; var dpt = new DptCharackter_8859_1(charackter); Assert.AreEqual(0x41, dpt.Payload[0]); }
public void EncodeAndDecode8859_1Charackters() { for (int i = 0; i < 255; i++) { var charackter = ((char)i); var dpt1 = new DptCharackter_8859_1(charackter); var dpt2 = new DptCharackter_8859_1(dpt1.Payload); Assert.AreEqual(dpt2.Value, charackter); } }