Skip to content

Add ColorToColor Converter Unit Tests#311

Merged
TheCodeTraveler merged 3 commits intomainfrom
color-to-color-converter-tests
Mar 3, 2022
Merged

Add ColorToColor Converter Unit Tests#311
TheCodeTraveler merged 3 commits intomainfrom
color-to-color-converter-tests

Conversation

@TheCodeTraveler
Copy link
Copy Markdown
Collaborator

Description of Change

This PR implements unit tests for the ColorToColor Converters found in ColorToColorConverters.shared.cs

Linked Issues

PR Checklist

  • Has a linked Issue, and the Issue has been approved(bug) or Championed (feature/proposal)
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard

Additional information

I've also added ArgumentNullException.ThrowIfNull(value); to each Converter. Even though we have <nullable>Enable</nullable>, devs who do not have nullable enabled may still try to pass in null via the public API.

bijington
bijington previously approved these changes Mar 3, 2022
Copy link
Copy Markdown
Contributor

@bijington bijington left a comment

Choose a reason for hiding this comment

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

I doubt my comment is blocking. In fact it's probably me trying to understand a bit more :)

Comment thread src/CommunityToolkit.Maui.UnitTests/Converters/ColorToColorConverter_Tests.cs Outdated
@TheCodeTraveler TheCodeTraveler merged commit e64ea97 into main Mar 3, 2022
@delete-merged-branch delete-merged-branch bot deleted the color-to-color-converter-tests branch March 3, 2022 17:02
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] Color-To-Color Converters

3 participants