Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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