// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
using NUnit.Framework;
[TestFixture]
public class X509ChainTest {
- private X509Certificate2Collection empty;
+ //private X509Certificate2Collection empty;
private X509Certificate2Collection collection;
private X509Certificate2 cert_empty;
cert1 = new X509Certificate2 (X509Certificate2Test.farscape_pfx, "farscape", X509KeyStorageFlags.Exportable);
cert2 = new X509Certificate2 (Encoding.ASCII.GetBytes (X509Certificate2Test.base64_cert));
- empty = new X509Certificate2Collection ();
+ //empty = new X509Certificate2Collection ();
collection = new X509Certificate2Collection ();
collection.Add (cert1);
collection.Add (cert2);
}
[Test]
- [Category ("InetAccess")]
public void Build_Cert1_X509RevocationMode_Online ()
{
X509Chain c = new X509Chain ();
public void StaticCreation ()
{
X509Chain c = X509Chain.Create ();
-#if MOBILE
- Assert.IsNull (c);
-#else
CheckDefaultChain (c);
-#endif
}
-#if !MOBILE
[Test]
public void CreateViaCryptoConfig ()
{
Assert.AreEqual (typeof (X509Chain), CryptoConfig.CreateFromName ("X509Chain").GetType (), "X509Chain");
Assert.IsNull (CryptoConfig.CreateFromName ("System.Security.Cryptography.X509Certificates.X509Chain"), "System.Security.Cryptography.X509Certificates.X509Chain");
}
-#endif
}
}
-#endif