Skip to content

Commit

Permalink
Test case from issue's repro
Browse files Browse the repository at this point in the history
  • Loading branch information
dotpaul committed Jul 26, 2019
1 parent 5fe406c commit fbadcb7
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ namespace Microsoft.NetCore.Analyzers.Security.UnitTests
{
public class UseRSAWithSufficientKeySizeTests : DiagnosticAnalyzerTestBase
{
[Fact]
public void Issue2697()
{
VerifyCSharp(@"
using System.Security.Cryptography;
class TestClass
{
public RSACryptoServiceProvider TestMethod(string xml)
{
var rsa = new RSACryptoServiceProvider();
rsa.FromXmlString(xml);
return rsa;
}
}");
}

[Fact]
public void TestCreateObjectOfRSADerivedClassWithInt32ParameterDiagnostic()
{
Expand Down

0 comments on commit fbadcb7

Please sign in to comment.