Skip to content

Commit

Permalink
Revert "[monotouch-test] Disable X509Certificate(byte[]) tests on wat…
Browse files Browse the repository at this point in the history
…chOS (#4942)"

This reverts commit d003a9b.
  • Loading branch information
Martin Baulig committed Oct 16, 2018
1 parent 8feb753 commit c308071
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions tests/common/TestRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -531,13 +531,6 @@ static bool CheckWatchOSSystemVersion (int major, int minor, bool throwIfOtherPl
#endif
}

public static void AssertNotWatchOS (string message = "This test is not supported on watchOS")
{
#if __WATCHOS__
NUnit.Framework.Assert.Ignore (message);
#endif
}

static void AssertWatchOSSystemVersion (int major, int minor, bool throwIfOtherPlatform = true)
{
if (CheckWatchOSSystemVersion (major, minor, throwIfOtherPlatform))
Expand Down
2 changes: 0 additions & 2 deletions tests/monotouch-test/Security/CertificateTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,6 @@ public void MailRaw ()
[Test]
public void MailX1 ()
{
TestRuntime.AssertNotWatchOS ("X509Certificate (byte[]) doesn't work on watchOS");

using (var cert = new X509Certificate (mail_google_com)) {
/*
* This X509Certificate constructor will use SecCertificateCreateWithData() and
Expand Down
2 changes: 0 additions & 2 deletions tests/monotouch-test/Security/RecordTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,6 @@ public void IdentityRecordTest ()
[Test]
public void SecRecordRecordTest ()
{
TestRuntime.AssertNotWatchOS ("X509Certificate (byte[]) doesn't work on watchOS");

using (var cert = new X509Certificate (CertificateTest.mail_google_com))
using (var sc = new SecCertificate (cert))
using (var rec = new SecRecord (sc)) {
Expand Down

0 comments on commit c308071

Please sign in to comment.