public void ProtectKeysWithProvidedCertificate_NullCertificate()
        {
            var builder = new DataProtectionBuilder(new ServiceCollection());

            Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.ProtectKeysWithProvidedCertificate(builder, null));
        }
 public void ProtectKeysWithProvidedCertificate_NullBuilder()
 {
     Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.ProtectKeysWithProvidedCertificate(null, TestCertificate.GetCertificate()));
 }