Skip to content

Commit

Permalink
typo: ThrowArguement -> ThrowArgument; fix SPDX URL anchor (#769)
Browse files Browse the repository at this point in the history
* typo: ThrowArguement -> ThrowArgument

Signed-off-by: Arthit Suriyawongkul <[email protected]>

* Bring back anchors to specific section in a web page

Signed-off-by: Arthit Suriyawongkul <[email protected]>

---------

Signed-off-by: Arthit Suriyawongkul <[email protected]>
Co-authored-by: Dave Tryon <[email protected]>
  • Loading branch information
bact and DaveTryon authored Oct 31, 2024
1 parent 86fc42f commit e7c0454
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.Sbom.Parsers.Spdx22SbomParser.Entities.Enums;
/// Defines the type of <see cref="SPDXRelationship"/> between the source and the
/// target element.
///
/// Full definition here: https://spdx.github.io/spdx-spec/v2.2.2/relationships-between-SPDX-elements/.
/// Full definition here: https://spdx.github.io/spdx-spec/v2.2.2/relationships-between-SPDX-elements/#111-relationship-field.
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum SPDXRelationshipType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static string GetPackageName(this IInternalMetadataProvider internalMetad
/// <summary>
/// Generates the package verification code for a given package using the SPDX 2.2 specification.
///
/// Algorithm defined here https://spdx.github.io/spdx-spec/v2.2.2/package-information/.
/// Algorithm defined here https://spdx.github.io/spdx-spec/v2.2.2/package-information/#79-package-verification-code-field.
/// </summary>
/// <param name="internalMetadataProvider"></param>
/// <returns></returns>
Expand Down
6 changes: 3 additions & 3 deletions test/Microsoft.Sbom.Api.Tests/ApiConfigurationBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,21 +175,21 @@ public void GetConfiguration_DefaultRuntime()
[DataRow(" ")]
[DataRow(null)]
[ExpectedException(typeof(ArgumentException))]
public void ThrowArguementExceptionOnRootPathValues(string input)
public void ThrowArgumentExceptionOnRootPathValues(string input)
{
ApiConfigurationBuilder.GetConfiguration(input, null, null, null, null);
}

[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
public void ThrowArguementNulExceptionOnNullMetadata()
public void ThrowArgumentNulExceptionOnNullMetadata()
{
ApiConfigurationBuilder.GetConfiguration("random", null, null, null, null);
}

[TestMethod]
[ExpectedException(typeof(ArgumentException))]
public void ThrowArguementExceptionOnSpecificationZero()
public void ThrowArgumentExceptionOnSpecificationZero()
{
ApiConfigurationBuilder.GetConfiguration("random", null, null, null, metadata, new List<SbomSpecification>(), runtime);
}
Expand Down

0 comments on commit e7c0454

Please sign in to comment.