Esempio n. 1
0
 public void Test_Create()
 {
     Packet p = new Packet("foo", doc);
     Assert.AreEqual("<foo />", p.ToString());
     p.To = "one";
     Assert.AreEqual("<foo to=\"one\" />", p.ToString());
     p.From = "two";
     Assert.AreEqual("<foo to=\"one\" from=\"two\" />", p.ToString());
     p.Swap();
     Assert.AreEqual("<foo to=\"two\" from=\"one\" />", p.ToString());
 }