ParseCweIds() public static method

Converts the CWE ID format from Fortify to a plain list of integers.
public static ParseCweIds ( string cweIdSource ) : ImmutableArray
cweIdSource string The string from which CWE IDs shall be parsed.
return ImmutableArray
 public void FortifyIssue_ParseCweIds_UniquesCweIds()
 {
     FortifyIssue.ParseCweIds("CWE ID 134, CWE ID 134").Should().Equal(new[] { 134 });
 }
 public void FortifyIssue_ParseCweIds_SortsCweIds()
 {
     FortifyIssue.ParseCweIds("CWE ID 787, CWE ID 134").Should().Equal(new[] { 134, 787 });
 }
 public void FortifyIssue_ParseCweIds_SingleCweId()
 {
     FortifyIssue.ParseCweIds("CWE ID 476").Should().Equal(new[] { 476 });
 }
 public void FortifyIssue_ParseCweIds_MultipleCweIds()
 {
     FortifyIssue.ParseCweIds("CWE ID 134, CWE ID 787").Should().Equal(new[] { 134, 787 });
 }
 public void FortifyIssue_ParseCweIds_NoIds()
 {
     FortifyIssue.ParseCweIds("1234").Should().BeEmpty();
 }