Пример #1
0
 public void AttestationMechanism_Constructor_ThrowsOnAttestationNull()
 {
     // arrange - act - assert
     TestAssert.Throws <ArgumentNullException>(() => new AttestationMechanism(null));
 }
 public void IndividualEnrollmentConstructorThrowsOnInvalidParameters()
 {
     // arrange - act - assert
     TestAssert.Throws <ArgumentException>(() => new IndividualEnrollment(SampleRegistrationId, null));
     TestAssert.Throws <ArgumentException>(() => new IndividualEnrollment(SampleRegistrationId, SampleX509RootAttestation));
 }