summary refs log tree commit diff
path: root/crypto/test/src/ocsp
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-06-27 02:19:14 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-06-27 02:19:14 +0700
commit4ea1816cffd5c8663bc9ae1234df0a70ef23fcd6 (patch)
treeeb4fe294ef230435928a573fadef3047b4466e9b /crypto/test/src/ocsp
parentImplement generic IEnumerable in ASN.1 classes (diff)
downloadBouncyCastle.NET-ed25519-4ea1816cffd5c8663bc9ae1234df0a70ef23fcd6.tar.xz
Generics migration work
Diffstat (limited to 'crypto/test/src/ocsp')
-rw-r--r--crypto/test/src/ocsp/test/OCSPTest.cs22
1 files changed, 10 insertions, 12 deletions
diff --git a/crypto/test/src/ocsp/test/OCSPTest.cs b/crypto/test/src/ocsp/test/OCSPTest.cs
index 1630e29b1..73e2ff9f7 100644
--- a/crypto/test/src/ocsp/test/OCSPTest.cs
+++ b/crypto/test/src/ocsp/test/OCSPTest.cs
@@ -1,6 +1,5 @@
 using System;
-using System.Collections;
-using System.IO;
+using System.Collections.Generic;
 
 using NUnit.Framework;
 
@@ -9,7 +8,6 @@ using Org.BouncyCastle.Asn1.Ocsp;
 using Org.BouncyCastle.Asn1.X509;
 using Org.BouncyCastle.Crypto;
 using Org.BouncyCastle.Math;
-using Org.BouncyCastle.Utilities.Collections;
 using Org.BouncyCastle.Utilities.Encoders;
 using Org.BouncyCastle.Utilities.Test;
 using Org.BouncyCastle.X509;
@@ -316,8 +314,8 @@ namespace Org.BouncyCastle.Ocsp.Tests
 
 			gen = new OcspReqGenerator();
 
-			IList oids = new ArrayList();
-			IList values = new ArrayList();
+			var oids = new List<DerObjectIdentifier>();
+			var values = new List<X509Extension>();
 			byte[] sampleNonce = new byte[16];
 			Random rand = new Random();
 
@@ -349,7 +347,7 @@ namespace Org.BouncyCastle.Ocsp.Tests
 			//
 			// extension check.
 			//
-			ISet extOids = req.GetCriticalExtensionOids();
+			var extOids = req.GetCriticalExtensionOids();
 
 			if (extOids.Count != 0)
 			{
@@ -504,8 +502,8 @@ namespace Org.BouncyCastle.Ocsp.Tests
 
 			gen = new OcspReqGenerator();
 
-			IList oids = new ArrayList();
-			IList values = new ArrayList();
+			var oids = new List<DerObjectIdentifier>();
+			var values = new List<X509Extension>();
 			byte[] sampleNonce = new byte[16];
 			Random rand = new Random();
 
@@ -538,7 +536,7 @@ namespace Org.BouncyCastle.Ocsp.Tests
 			//
 			// extension check.
 			//
-			ISet extOids = req.GetCriticalExtensionOids();
+			var extOids = req.GetCriticalExtensionOids();
 
 			if (extOids.Count != 0)
 			{
@@ -706,8 +704,8 @@ namespace Org.BouncyCastle.Ocsp.Tests
 
 			gen = new OcspReqGenerator();
 
-			IList oids = new ArrayList();
-			IList values = new ArrayList();
+			var oids = new List<DerObjectIdentifier>();
+			var values = new List<X509Extension>();
 			byte[] sampleNonce = new byte[16];
 			Random rand = new Random();
 
@@ -740,7 +738,7 @@ namespace Org.BouncyCastle.Ocsp.Tests
 			//
 			// extension check.
 			//
-			ISet extOids = req.GetCriticalExtensionOids();
+			var extOids = req.GetCriticalExtensionOids();
 
 			if (extOids.Count != 0)
 			{