Skip to content

Commit e6ee874

Browse files
authored
fix build warning (#786)
1 parent 0d719f1 commit e6ee874

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/KubernetesClient.Tests/CertUtilsTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public void LoadFromFiles()
3030

3131
// Just validate that this doesn't throw and private key is non-null
3232
var cert = CertUtils.GeneratePfx(cfg);
33-
Assert.NotNull(cert.PrivateKey);
33+
Assert.NotNull(cert.GetRSAPrivateKey());
3434
}
3535

3636
/// <summary>
@@ -45,7 +45,7 @@ public void LoadFromFilesRelativePath()
4545

4646
// Just validate that this doesn't throw and private key is non-null
4747
var cert = CertUtils.GeneratePfx(cfg);
48-
Assert.NotNull(cert.PrivateKey);
48+
Assert.NotNull(cert.GetRSAPrivateKey());
4949
}
5050

5151
/// <summary>
@@ -59,7 +59,7 @@ public void LoadFromInlineData()
5959

6060
// Just validate that this doesn't throw and private key is non-null
6161
var cert = CertUtils.GeneratePfx(cfg);
62-
Assert.NotNull(cert.PrivateKey);
62+
Assert.NotNull(cert.GetRSAPrivateKey());
6363
}
6464

6565
/// <summary>
@@ -74,7 +74,7 @@ public void LoadFromInlineDataRelativePath()
7474

7575
// Just validate that this doesn't throw and private key is non-null
7676
var cert = CertUtils.GeneratePfx(cfg);
77-
Assert.NotNull(cert.PrivateKey);
77+
Assert.NotNull(cert.GetRSAPrivateKey());
7878
}
7979

8080
/// <summary>

0 commit comments

Comments
 (0)