Skip to content

Conversation

jensandresen
Copy link

Fixed failing unit test regarding parsing a decimal (properly only an issue with a non English environment setup - mine being a Danish which resulted in a failing unit test right from the get-go).

Tip: always read and write decimal values (and other values which are different from culture to culture) as culture invariant to and from your persistence of choice.

Changed the call to ChangeDirectory to use the path of the best fitted record directly, because it would be enclosed in quotes in ChangeDirectory anyway. Also added a trim of the path string.

@vors
Copy link
Collaborator

vors commented Sep 19, 2014

Should we remove GetResultPath completely?

@tkellogg
Copy link
Owner

@vors Yeah, I think it could make sense to remove GetResultPath, but it's not a super-critical change.

@vors
Copy link
Collaborator

vors commented Sep 19, 2014

Looks good to me.

@jensandresen
Copy link
Author

Added a test for parsing an invalid weight and changed the implementation to use decimal.TryParse instead.

Kept the GetResultPath refactoring out to limit the changes in the pull-request. I think it is best to do that in a separate refactoring.

vors added a commit that referenced this pull request Sep 20, 2014
@vors vors merged commit 45176c0 into tkellogg:master Sep 20, 2014
@vors
Copy link
Collaborator

vors commented Sep 21, 2014

@jensandresen can you, please, link email jad@trifork.com that you used for commits to your github profile? So we can have you in contributors :)

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.

3 participants