[System] Fix compilation on watchos (#5108)
[mono.git] / mcs / class / System / Test / System.Net / HttpListenerBasicIdentityTest.cs
index 4d8985a262d52550c6fe148b185ad247b7677cfc..f998592aad737a2a7ea47fc7fa32ec4d73401a3c 100644 (file)
@@ -37,12 +37,18 @@ namespace MonoTests.System.Net {
                [ExpectedException (typeof (ArgumentNullException))]
                public void Basic1 ()
                {
+#if MONOTOUCH_WATCH || __WATCHOS__
+                       Assert.Ignore ("HttpListenerBasicIdentity is not supported on watchOS");
+#endif
                        HttpListenerBasicIdentity bi = new HttpListenerBasicIdentity (null, null);
                }
 
                [Test]
                public void Basic2 ()
                {
+#if MONOTOUCH_WATCH || __WATCHOS__
+                       Assert.Ignore ("HttpListenerBasicIdentity is not supported on watchOS");
+#endif
                        HttpListenerBasicIdentity bi = new HttpListenerBasicIdentity ("", null);
                        Assert.AreEqual ("Basic", bi.AuthenticationType, "#01");
                        Assert.AreEqual ("", bi.Name, "#02");
@@ -53,6 +59,9 @@ namespace MonoTests.System.Net {
                [Test]
                public void Basic3 ()
                {
+#if MONOTOUCH_WATCH || __WATCHOS__
+                       Assert.Ignore ("HttpListenerBasicIdentity is not supported on watchOS");
+#endif
                        HttpListenerBasicIdentity bi = new HttpListenerBasicIdentity ("hey", null);
                        Assert.AreEqual ("Basic", bi.AuthenticationType, "#01");
                        Assert.AreEqual ("hey", bi.Name, "#02");
@@ -63,6 +72,9 @@ namespace MonoTests.System.Net {
                [Test]
                public void Basic4 ()
                {
+#if MONOTOUCH_WATCH || __WATCHOS__
+                       Assert.Ignore ("HttpListenerBasicIdentity is not supported on watchOS");
+#endif
                        HttpListenerBasicIdentity bi = new HttpListenerBasicIdentity ("hey", "pass");
                        Assert.AreEqual ("Basic", bi.AuthenticationType, "#01");
                        Assert.AreEqual ("hey", bi.Name, "#02");