Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: added test cases for helper classes #1128

Merged

Conversation

KaranChadha10
Copy link

@KaranChadha10 KaranChadha10 commented Apr 3, 2025

Description

This PR contains the following points
Added unit tests for the following files=>

  • CurrencyHelper
  • ReflectionHelper
  • MenuApiController

Related PR: #1074

image

<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Comment on lines 12 to 14
/// <summary>
/// Contains unit tests for <see cref="CurrencyHelper.IsZeroDecimalCurrencies"/> method.
/// </summary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <summary>
/// Contains unit tests for <see cref="CurrencyHelper.IsZeroDecimalCurrencies"/> method.
/// </summary>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for docs in test projects

Comment on lines 17 to 19
/// <summary>
/// Verifies that zero-decimal currencies are correctly identified.
/// </summary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <summary>
/// Verifies that zero-decimal currencies are correctly identified.
/// </summary>

Comment on lines 37 to 39
/// <summary>
/// Verifies that an exception is thrown when an invalid culture is provided.
/// </summary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <summary>
/// Verifies that an exception is thrown when an invalid culture is provided.
/// </summary>

Comment on lines 11 to 13
/// <summary>
/// Contains unit tests for <see cref="ReflectionHelperTests"/> method.
/// </summary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <summary>
/// Contains unit tests for <see cref="ReflectionHelperTests"/> method.
/// </summary>

Comment on lines 17 to 19
/// <summary>
/// Contains unit tests for <see cref="MenuApiController"/> method.
/// </summary>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// <summary>
/// Contains unit tests for <see cref="MenuApiController"/> method.
/// </summary>

@KaranChadha10 KaranChadha10 requested a review from hishamco April 4, 2025 02:41
@KaranChadha10
Copy link
Author

@hishamco comments resolved, PR is ready for review, thanks.

@hishamco hishamco merged commit fb55a6c into simplcommerce:master Apr 4, 2025
9 of 10 checks passed
@hishamco
Copy link
Member

hishamco commented Apr 4, 2025

Thanks for your contributions @KaranChadha10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants