Skip to content

Commit c308071

Browse files
author
Martin Baulig
committed
Revert "[monotouch-test] Disable X509Certificate(byte[]) tests on watchOS (#4942)"
This reverts commit d003a9b.
1 parent 8feb753 commit c308071

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

tests/common/TestRuntime.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -531,13 +531,6 @@ static bool CheckWatchOSSystemVersion (int major, int minor, bool throwIfOtherPl
531531
#endif
532532
}
533533

534-
public static void AssertNotWatchOS (string message = "This test is not supported on watchOS")
535-
{
536-
#if __WATCHOS__
537-
NUnit.Framework.Assert.Ignore (message);
538-
#endif
539-
}
540-
541534
static void AssertWatchOSSystemVersion (int major, int minor, bool throwIfOtherPlatform = true)
542535
{
543536
if (CheckWatchOSSystemVersion (major, minor, throwIfOtherPlatform))

tests/monotouch-test/Security/CertificateTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,6 @@ public void MailRaw ()
555555
[Test]
556556
public void MailX1 ()
557557
{
558-
TestRuntime.AssertNotWatchOS ("X509Certificate (byte[]) doesn't work on watchOS");
559-
560558
using (var cert = new X509Certificate (mail_google_com)) {
561559
/*
562560
* This X509Certificate constructor will use SecCertificateCreateWithData() and

tests/monotouch-test/Security/RecordTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,6 @@ public void IdentityRecordTest ()
312312
[Test]
313313
public void SecRecordRecordTest ()
314314
{
315-
TestRuntime.AssertNotWatchOS ("X509Certificate (byte[]) doesn't work on watchOS");
316-
317315
using (var cert = new X509Certificate (CertificateTest.mail_google_com))
318316
using (var sc = new SecCertificate (cert))
319317
using (var rec = new SecRecord (sc)) {

0 commit comments

Comments
 (0)