Skip to content

Commit 45f6e69

Browse files
committed
Updated packages
1 parent f02402d commit 45f6e69

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

JwtManager/JwtManager.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="BouncyCastle.NetCore" Version="1.8.3" />
11-
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
10+
<PackageReference Include="BouncyCastle.NetCore" Version="1.8.5" />
11+
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
1212
</ItemGroup>
1313

1414
</Project>

JwtManagerTests/HsJwtTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void SignData()
4848
Secret = Secret
4949
};
5050

51-
string data = "{a:1,b:2}";
51+
string data = "{\"a\":1,\"b\":2}";
5252
string signedData = jwt.Sign(data);
5353

5454
Assert.IsTrue(signedData != null, "Object should not be null");
@@ -57,7 +57,7 @@ public void SignData()
5757
[TestMethod]
5858
public void ValidateData()
5959
{
60-
string data = "{a:1,b:2}";
60+
string data = "{\"a\":1,\"b\":2}";
6161
JwtManager.HsJwt signJwt = new JwtManager.HsJwt
6262
{
6363
KeySize = HashKeySize(),
@@ -88,7 +88,7 @@ public void ValidateInvalidData()
8888

8989
try
9090
{
91-
string data = "{a:1,b:2}";
91+
string data = "{\"a\":1,\"b\":2}";
9292
string signedData = jwt.Sign(data);
9393
string validatedData = jwt.Validate(signedData + "a");
9494
}
@@ -113,7 +113,7 @@ public void SignDataWithInvalidHashAlgorithm()
113113

114114
try
115115
{
116-
string data = "{a:1,b:2}";
116+
string data = "{\"a\":1,\"b\":2}";
117117
string signedData = jwt.Sign(data);
118118
}
119119
catch (Exception ex)
@@ -143,7 +143,7 @@ public void ValidateWithInvalidHashAlgorithm()
143143

144144
try
145145
{
146-
string data = "{a:1,b:2}";
146+
string data = "{\"a\":1,\"b\":2}";
147147
string signedData = sJwt.Sign(data);
148148
Assert.IsNull(e, "An exception should not be thrown here");
149149
string validatedData = vJwt.Validate(signedData);

JwtManagerTests/JwtManagerTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.1" />
1111
<PackageReference Include="MSTest.TestAdapter" Version="1.4.0" />
1212
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
1313
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />

0 commit comments

Comments
 (0)