Skip to content

Commit ae05cfb

Browse files
Fixing tests
1 parent eb44048 commit ae05cfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mastercard.Developer.ClientEncryption.Tests/NetCore2/Interceptors/RestSharpV2GcmJweEncryptionInterceptorTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void TestIntercept_ShouldEncryptRequestPayloadAndUpdateContentLengthHeade
4848
}
4949

5050
[TestMethod]
51-
#if !NETCOREAPP3_1 && !NET5_0_OR_GREATER
51+
#if !NETCOREAPP3_1 && !NET5_0_OR_GREATERTestInterceptResponse_ShouldDecryptResponsePayloadAndUpdateContentLengthHeaderTestInterceptResponse_ShouldDecryptResponsePayloadAndUpdateContentLengthHeader
5252
[ExpectedException(typeof(EncryptionException), "AES/GCM/NoPadding is unsupported on .NET Standard < 2.1")]
5353
# endif
5454
public void TestInterceptResponse_ShouldDecryptResponsePayloadAndUpdateContentLengthHeader()
@@ -70,7 +70,7 @@ public void TestInterceptResponse_ShouldDecryptResponsePayloadAndUpdateContentLe
7070
TestUtils.AssertPayloadEquals("{\"foo\":\"bar\"}", payload);
7171
var contentLengthHeaderParam = response.Headers.FirstOrDefault(param => param.Type == ParameterType.HttpHeader);
7272
Assert.IsNotNull(contentLengthHeaderParam);
73-
Assert.AreEqual(payload.Length, contentLengthHeaderParam.Value);
73+
Assert.AreEqual(payload.Length.ToString(), contentLengthHeaderParam.Value);
7474
}
7575
}
7676
}

0 commit comments

Comments
 (0)