Explorar el Código

2010-01-07 Atsushi Enomoto <[email protected]>

	* ServiceHostBaseTest.cs : another mannerless test here.


svn path=/trunk/mcs/; revision=149155
Atsushi Eno hace 16 años
padre
commit
fc8b22919e

+ 4 - 0
mcs/class/System.ServiceModel/Test/System.ServiceModel/ChangeLog

@@ -1,3 +1,7 @@
+2010-01-07  Atsushi Enomoto  <[email protected]>
+
+	* ServiceHostBaseTest.cs : another mannerless test here.
+
 2010-01-06  Atsushi Enomoto  <[email protected]>
 
 	* NetTcpBindingTest.cs : enable some tests and added streamed mode

+ 3 - 0
mcs/class/System.ServiceModel/Test/System.ServiceModel/ServiceHostBaseTest.cs

@@ -166,6 +166,7 @@ namespace MonoTests.System.ServiceModel
 			b.HttpHelpPageEnabled = false;						
 
 			h.Open ();
+			try {
 			Assert.AreEqual (h.ChannelDispatchers.Count, 1);
 			ChannelDispatcher channelDispatcher =  h.ChannelDispatchers[0] as ChannelDispatcher;
 			Assert.IsNotNull (channelDispatcher, "#1");
@@ -175,7 +176,9 @@ namespace MonoTests.System.ServiceModel
 			Assert.IsTrue (filter.Address.Equals (new EndpointAddress ("http://localhost:8080/address")), "#4");
 			Assert.IsFalse (filter.IncludeHostNameInComparison, "#5");
 			Assert.IsTrue (channelDispatcher.Endpoints [0].ContractFilter is MatchAllMessageFilter, "#6");
+			} finally {
 			h.Close ();
+			}
 		}
 
 		[Test]