We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 256df13 commit 288ff39Copy full SHA for 288ff39
sdk/communication/Azure.Communication.Common/tests/Pipeline/HMACAuthenticationPolicyTests.cs
@@ -30,8 +30,8 @@ public async Task TestHMACPolicyProcess()
30
31
var expectedAuthHeader = "HMAC-SHA256 SignedHeaders=date;host;x-ms-content-sha256";
32
Assert.True(headers.TryGetValue("Authorization", out var authValue));
33
- authValue = (authValue == null) ? "" : authValue;
34
- Assert.True(authValue.Contains(expectedAuthHeader));
+ Assert.NotNull(authValue);
+ Assert.True(authValue!.Contains(expectedAuthHeader));
35
}
36
37
0 commit comments