X Tutup
Skip to content

Refactored the tests for Parse and TryParse (UnitTestBaseClassGenerator)#1595

Merged
angularsen merged 4 commits intoangularsen:masterfrom
lipchev:quantity-tests-parsing
Aug 9, 2025
Merged

Refactored the tests for Parse and TryParse (UnitTestBaseClassGenerator)#1595
angularsen merged 4 commits intoangularsen:masterfrom
lipchev:quantity-tests-parsing

Conversation

@lipchev
Copy link
Collaborator

@lipchev lipchev commented Aug 3, 2025

Assert.True(Acceleration.TryParse("1 g", CultureInfo.GetCultureInfo("ru-RU"), out var parsed));
AssertEx.EqualTolerance(1, parsed.StandardGravity, StandardGravityTolerance);
Assert.Equal(AccelerationUnit.StandardGravity, parsed.Unit);
}
Copy link
Owner

Choose a reason for hiding this comment

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

Man, we do have some verbose tests 😓 Can't say I browse and read these files more than I absolutely have to, but at least it's getting better!

@angularsen angularsen merged commit 28ac7db into angularsen:master Aug 9, 2025
1 check was pending
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

X Tutup