コード例 #1
0
		public void StandardRoundtrip2 ()
		{
			TypedMessageConverter c = TypedMessageConverter.Create (
				typeof (Test2), "http://tempuri.org/MyTest");
			var t1 = new Test2 ();
			t1.Body = new Echo () { msg = "test" };
			var uid = Guid.NewGuid ();
			t1.Id = uid;
			Message msg = c.ToMessage (t1);
			var t2 = (Test2) c.FromMessage (msg);
			Assert.AreEqual ("test", t2.Body.msg, "#01");
			Assert.AreEqual (uid, t2.Id, "#02");
		}