public void testInjectRefereneValue_ecc_assertValue()
 {
     var cert = new X509Certificate2(@"resources/certs/ecc.der");
     var field = new SubjectPublicKeySizeField();
     field.InjectReferenceValue(cert);
     field.GetPolicyValue().GetPolicyValue().Should().Be(0);
 }
 public void SubjectPublicKeySizeField_injectReferenceValueTest()
 {
     var cert = new X509Certificate2(@"resources/certs/altNameOnly.der");
     var field = new SubjectPublicKeySizeField();
     field.InjectReferenceValue(cert);
     field.GetPolicyValue().GetPolicyValue().Should().Be(1024);
 }
Пример #3
0
        public void testInjectRefereneValue_ecc_assertValue()
        {
            var cert  = new X509Certificate2(@"resources/certs/ecc.der");
            var field = new SubjectPublicKeySizeField();

            field.InjectReferenceValue(cert);
            field.GetPolicyValue().GetPolicyValue().Should().Be(0);
        }
Пример #4
0
        public void SubjectPublicKeySizeField_injectReferenceValueTest()
        {
            var cert  = new X509Certificate2(@"resources/certs/altNameOnly.der");
            var field = new SubjectPublicKeySizeField();

            field.InjectReferenceValue(cert);
            field.GetPolicyValue().GetPolicyValue().Should().Be(1024);
        }