Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: Some unit tests fail if UI Culture is set to non en-US [1447]

$
0
0
Several unit tests (currently 79) are failing on Assert.Equal(...) call where the text to compare is hard coded in English but the running Thread UICulture is e.g. de-DE.

Example
Fact: Validate_ValidateAllProperties_AddsValidationErrors

```
Assert.Equal("Date of death can't be before date of birth." + Environment.NewLine
+ "Parameter name: value",
bindingContext.ModelState["foo"].Errors[0].Exception.Message);
```


Returned error message is formatted in German, therefore Equal fails.
Comments: Verified.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>