Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2014-02-23 20:54:54 +0400
committerAlexander Köplinger <alex.koeplinger@outlook.com>2014-02-23 22:44:21 +0400
commitb0032294da2ddfc86f2ba04fd099331761737cad (patch)
tree67533d56e57bdca965f7f15b3ff237ecaa8bb76f /mcs/class/System.ServiceModel/Test
parent06502ec1e902d63bc61df3d0ff8f4b27059cb90f (diff)
[Test] Cleaned up how a bunch of tests were ignored
Previously, many tests just had a return statement when the test shouldn't be executed (e.g. Unix-only). This made it look like the test was successful when in fact it wasn't executed at all. Assert.Ignore() is now used instead to correctly exclude those tests.
Diffstat (limited to 'mcs/class/System.ServiceModel/Test')
-rw-r--r--mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs b/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs
index 9255b87ba4e..4a2e8b06ba3 100644
--- a/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs
+++ b/mcs/class/System.ServiceModel/Test/System.ServiceModel/NetPeerTcpBindingTest.cs
@@ -43,7 +43,7 @@ namespace MonoTests.System.ServiceModel
public void DefaultValues ()
{
if (!NetPeerTcpBinding.IsPnrpAvailable)
- return; // yes, we actually don't test it.
+ Assert.Ignore ("PNRP is not available."); // yes, we actually don't test it.
var n = new NetPeerTcpBinding ();
Assert.AreEqual (EnvelopeVersion.Soap12, n.EnvelopeVersion, "#1");