You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.Data.SqlClient/tests/FunctionalTests/AlwaysEncryptedTests/ExceptionsCertStore.cs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,13 +42,21 @@ public void CertificateNotFound()
42
42
[Fact]
43
43
publicvoidCertificateWithNoPrivateKey()
44
44
{
45
+
#if NET
46
+
stringexpectedMessage=string.Format("Certificate specified in key path '{0}' does not have a private key to encrypt a column encryption key. Verify the certificate is imported correctly. (Parameter 'masterKeyPath')",ExceptionCertFixture.masterKeyPathNPK);
47
+
#else
45
48
stringexpectedMessage=string.Format("Certificate specified in key path '{0}' does not have a private key to encrypt a column encryption key. Verify the certificate is imported correctly.\r\nParameter name: masterKeyPath",ExceptionCertFixture.masterKeyPathNPK);
expectedMessage=string.Format("Certificate specified in key path '{0}' does not have a private key to decrypt a column encryption key. Verify the certificate is imported correctly. (Parameter 'masterKeyPath')",ExceptionCertFixture.masterKeyPathNPK);
57
+
#else
51
58
expectedMessage=string.Format("Certificate specified in key path '{0}' does not have a private key to decrypt a column encryption key. Verify the certificate is imported correctly.\r\nParameter name: masterKeyPath",ExceptionCertFixture.masterKeyPathNPK);
0 commit comments