2009-07-14 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.ServiceModel / Test / System.ServiceModel.PeerResolvers / PeerResolverSerializationTest.cs
index 364f050c69128739f23194c380f9d94fd661afe0..146ee020649f4a3a9ac3e8083f0302f8ff57bc02 100644 (file)
@@ -36,9 +36,26 @@ using System.ServiceModel;
 using System.ServiceModel.Channels;
 using System.ServiceModel.PeerResolvers;
 using System.Xml;
+using NUnit.Framework;
 
+namespace MonoTests.System.ServiceModel.PeerResolvers
+{
+
+[TestFixture]
 public class PeerResolverSerializationTest
 {
+       [Test]
+       public void HasBody ()
+       {
+               Assert.IsTrue (new RegisterInfo ().HasBody (), "#1");
+               Assert.IsTrue (new RegisterResponseInfo ().HasBody (), "#2");
+               Assert.IsTrue (new ResolveInfo ().HasBody (), "#3");
+               Assert.IsTrue (new ResolveResponseInfo ().HasBody (), "#4");
+               Assert.IsTrue (new RefreshInfo ().HasBody (), "#5");
+               Assert.IsTrue (new RefreshResponseInfo ().HasBody (), "#6");
+       }
+
+       [Test]
        public void ResolveResponseInfo ()
        {
                var ser = new DataContractSerializer (typeof (ResolveResponseInfo));
@@ -80,3 +97,5 @@ public class PeerNodeAddress
        public IList<IPAddress> Addresses { get; set; }
 }
 */
+
+}