Skip to content

add unit tests

add unit tests #28

Triggered via pull request October 6, 2024 20:02
Status Success
Total duration 35s
Artifacts

nuget-publish.yml

on: pull_request
build-and-publish
25s
build-and-publish
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
build-and-publish
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build-and-publish
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-dotnet@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-and-publish: Simple.ArgumentParser/Builders/HelpSectionBuilder.cs#L34
Dereference of a possibly null reference.
build-and-publish: Simple.ArgumentParser.Example/Program.cs#L88
Dereference of a possibly null reference.
build-and-publish: Simple.ArgumentParser.Tests/Options/OptionTypeTests.cs#L17
The literal or constant value OptionType.Alpha should be passed as the 'expected' argument in the call to 'Assert.Equal(expected, actual)' in method 'Constructor_sets_default_to_alpha' on type 'OptionTypeTests'. Swap the parameter values. (https://xunit.net/xunit.analyzers/rules/xUnit2000)
build-and-publish: Simple.ArgumentParser.Tests/ArgumentParserTests.cs#L46
The literal or constant value 9 should be passed as the 'expected' argument in the call to 'Assert.Equal(expected, actual)' in method 'Parse_should_handle_expected_arguments' on type 'ArgumentParserTests'. Swap the parameter values. (https://xunit.net/xunit.analyzers/rules/xUnit2000)
build-and-publish: Simple.ArgumentParser.Tests/ArgumentParserTests.cs#L76
The literal or constant value "help" should be passed as the 'expected' argument in the call to 'Assert.Equal(expected, actual)' in method 'Parse_should_ignore_unexpected_arguments' on type 'ArgumentParserTests'. Swap the parameter values. (https://xunit.net/xunit.analyzers/rules/xUnit2000)
build-and-publish: Simple.ArgumentParser.Tests/ArgsTests.cs#L273
The literal or constant value "valid-command" should be passed as the 'expected' argument in the call to 'Assert.Equal(expected, actual)' in method 'Get_returns_matching_command_if_valid_key' on type 'ArgsTests'. Swap the parameter values. (https://xunit.net/xunit.analyzers/rules/xUnit2000)
build-and-publish: Simple.ArgumentParser.Tests/ArgsTests.cs#L312
The literal or constant value 3 should be passed as the 'expected' argument in the call to 'Assert.Equal(expected, actual)' in method 'GetAll_returns_all_valid_commands' on type 'ArgsTests'. Swap the parameter values. (https://xunit.net/xunit.analyzers/rules/xUnit2000)
build-and-publish: Simple.ArgumentParser/Builders/HelpSectionBuilder.cs#L34
Dereference of a possibly null reference.
build-and-publish: Simple.ArgumentParser.Example/Program.cs#L88
Dereference of a possibly null reference.
build-and-publish: Simple.ArgumentParser.Tests/Options/OptionTypeTests.cs#L17
The literal or constant value OptionType.Alpha should be passed as the 'expected' argument in the call to 'Assert.Equal(expected, actual)' in method 'Constructor_sets_default_to_alpha' on type 'OptionTypeTests'. Swap the parameter values. (https://xunit.net/xunit.analyzers/rules/xUnit2000)