diff --git a/tests/JWT.Tests.Common/Algorithms/RSAlgorithmFactoryTests.cs b/tests/JWT.Tests.Common/Algorithms/RSAlgorithmFactoryTests.cs index 6f00987b9..9dbdeec7e 100644 --- a/tests/JWT.Tests.Common/Algorithms/RSAlgorithmFactoryTests.cs +++ b/tests/JWT.Tests.Common/Algorithms/RSAlgorithmFactoryTests.cs @@ -30,7 +30,7 @@ public void Create_Should_Return_Instance_Of_RS256Algorithm_When_Algorithm_Speci [TestMethod] public void Create_Should_Return_Instance_Of_RS384Algorithm_When_Algorithm_Specified_In_Jwt_Header_Is_RS384() { - var publicKey = RSACryptoServiceProvider; + var publicKey = new RSACryptoServiceProvider(); var factory = new RSAlgorithmFactory(publicKey); var context = new JwtDecoderContext { @@ -66,7 +66,7 @@ public void Create_Should_Return_Instance_Of_RS512Algorithm_When_Algorithm_Speci [TestMethod] public void Create_Should_Return_Instance_Of_RS1024Algorithm_When_Algorithm_Specified_In_Jwt_Header_Is_RS1024() { - var publicKey = RSACryptoServiceProvider; + var publicKey = new RSACryptoServiceProvider(); var factory = new RSAlgorithmFactory(publicKey); var context = new JwtDecoderContext