fix build warning (#786)

This commit is contained in:
Boshi Lian
2022-02-25 13:35:22 -08:00
committed by GitHub
parent 0d719f1fc6
commit e6ee874bf3

View File

@@ -30,7 +30,7 @@ namespace k8s.Tests
// Just validate that this doesn't throw and private key is non-null // Just validate that this doesn't throw and private key is non-null
var cert = CertUtils.GeneratePfx(cfg); var cert = CertUtils.GeneratePfx(cfg);
Assert.NotNull(cert.PrivateKey); Assert.NotNull(cert.GetRSAPrivateKey());
} }
/// <summary> /// <summary>
@@ -45,7 +45,7 @@ namespace k8s.Tests
// Just validate that this doesn't throw and private key is non-null // Just validate that this doesn't throw and private key is non-null
var cert = CertUtils.GeneratePfx(cfg); var cert = CertUtils.GeneratePfx(cfg);
Assert.NotNull(cert.PrivateKey); Assert.NotNull(cert.GetRSAPrivateKey());
} }
/// <summary> /// <summary>
@@ -59,7 +59,7 @@ namespace k8s.Tests
// Just validate that this doesn't throw and private key is non-null // Just validate that this doesn't throw and private key is non-null
var cert = CertUtils.GeneratePfx(cfg); var cert = CertUtils.GeneratePfx(cfg);
Assert.NotNull(cert.PrivateKey); Assert.NotNull(cert.GetRSAPrivateKey());
} }
/// <summary> /// <summary>
@@ -74,7 +74,7 @@ namespace k8s.Tests
// Just validate that this doesn't throw and private key is non-null // Just validate that this doesn't throw and private key is non-null
var cert = CertUtils.GeneratePfx(cfg); var cert = CertUtils.GeneratePfx(cfg);
Assert.NotNull(cert.PrivateKey); Assert.NotNull(cert.GetRSAPrivateKey());
} }
/// <summary> /// <summary>