2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/test/src/tls/test/PskTlsClientTest.cs b/crypto/test/src/tls/test/PskTlsClientTest.cs
index 62cfc0dc2..770fade6f 100644
--- a/crypto/test/src/tls/test/PskTlsClientTest.cs
+++ b/crypto/test/src/tls/test/PskTlsClientTest.cs
@@ -83,7 +83,7 @@ namespace Org.BouncyCastle.Tls.Tests
// TEST CODE ONLY. This is not a robust way of parsing the result!
foreach (string end in ends)
{
- if (upperLine.Contains(end))
+ if (upperLine.IndexOf(end) >= 0)
{
finished = true;
break;
diff --git a/crypto/test/src/tls/test/TlsClientTest.cs b/crypto/test/src/tls/test/TlsClientTest.cs
index 27e5f342b..cd6322604 100644
--- a/crypto/test/src/tls/test/TlsClientTest.cs
+++ b/crypto/test/src/tls/test/TlsClientTest.cs
@@ -67,7 +67,7 @@ namespace Org.BouncyCastle.Tls.Tests
// TEST CODE ONLY. This is not a robust way of parsing the result!
foreach (string end in ends)
{
- if (upperLine.Contains(end))
+ if (upperLine.IndexOf(end) >= 0)
{
finished = true;
break;
|