Esempio n. 1
0
 public void SetMessageStringTest()
 {
     rfc822Msg = new Rfc822MsgElement("Hi");
     Assert.AreEqual("Hi", Encoding.ASCII.GetString(rfc822Msg.Value), "Message does not have correct value after setting");
     Assert.AreEqual("Hi", rfc822Msg.ToString(), "Message does not have correct value after setting");
 }
Esempio n. 2
0
 public void SetMessageByteArrayTest()
 {
     rfc822Msg = new Rfc822MsgElement(new byte[] { (byte)'H', (byte)'i' });
     Assert.AreEqual("Hi", Encoding.ASCII.GetString(rfc822Msg.Value), "Message does not have correct value after setting");
     Assert.AreEqual("Hi", rfc822Msg.ToString(), "Message does not have correct value after setting");
 }