TIL: Always Use a Culture When Parsing Numeric Strings in C#

from blog Just Some Code, | ↗ original
This week, I reinstalled the operating system of my computer. The new version uses Spanish instead of English. After that, some unit tests started to break in one of my projects. The broken tests verified the formatting of currencies. This is what I learned about parsing numeric strings and unit testing. To have a set of always-passing unit...