{"action":"closed","issue":{"url":"https://api.github.com/repos/autofac/Autofac/issues/597","labels_url":"https://api.github.com/repos/autofac/Autofac/issues/597/labels{/name}","comments_url":"https://api.github.com/repos/autofac/Autofac/issues/597/comments","events_url":"https://api.github.com/repos/autofac/Autofac/issues/597/events","html_url":"https://github.com/autofac/Autofac/issues/597","id":50010878,"number":597,"title":"Test fails because of localization issue","user":{"login":"MircoBabin","id":8981285,"avatar_url":"https://avatars.githubusercontent.com/u/8981285?v=3","gravatar_id":"","url":"https://api.github.com/users/MircoBabin","html_url":"https://github.com/MircoBabin","followers_url":"https://api.github.com/users/MircoBabin/followers","following_url":"https://api.github.com/users/MircoBabin/following{/other_user}","gists_url":"https://api.github.com/users/MircoBabin/gists{/gist_id}","starred_url":"https://api.github.com/users/MircoBabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MircoBabin/subscriptions","organizations_url":"https://api.github.com/users/MircoBabin/orgs","repos_url":"https://api.github.com/users/MircoBabin/repos","events_url":"https://api.github.com/users/MircoBabin/events{/privacy}","received_events_url":"https://api.github.com/users/MircoBabin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/autofac/Autofac/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/autofac/Autofac/labels/module-core","name":"module-core","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-25T10:56:59Z","updated_at":"2015-01-26T01:03:17Z","closed_at":"2015-01-26T01:03:17Z","body":"1) I downloaded autofac-master.zip from github.\r\n2) I started ```go.cmd \"/p:Production=true\" \"/p:Platform=Any CPU\"```\r\n\r\nThis results in a test error, because the Exception text is localized in Dutch (I have a Dutch laptop). And is compared against English.\r\n\r\nI solved this problem by adding a SetUp function to explicitly set the culture. After the modification all tests pass.\r\n**Modified Core\\Tests\\Autofac.Tests\\Core\\DependencyResolutionExceptionTests.cs**\r\n```\r\nnamespace Autofac.Tests.Core\r\n{\r\n    [TestFixture]\r\n    public class DependencyResolutionExceptionTests\r\n    {\r\n        //MircoBabin, added SetUp to explicitly set culture for comparison of Exception strings\r\n        [SetUp]\r\n        public void SetUp()\r\n        {\r\n            System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;\r\n            System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.InvariantCulture;\r\n        }\r\n        //MircoBabin, end\r\n```\r\n\r\n**Test error without modification**\r\n```\r\nNUnit-Console version 2.6.3.13283\r\n  Copyright (C) 2002-2012 Charlie Poole.\r\n  Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.\r\n  Copyright (C) 2000-2002 Philip Craig.\r\n  All Rights Reserved.\r\n\r\n  Runtime Environment -\r\n     OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1\r\n    CLR Version: 2.0.50727.5485 ( Net 3.5 )\r\n\r\n  ProcessModel: Default    DomainUsage: Multiple\r\n  Execution Runtime: net-4.0\r\n  ...................................................................................................................................................\r\n  ...................................................................................................................................................\r\n  ...................................................................................................................................................\r\n  ...................................................................................................................................................\r\n  .........................................F.....................N...N.........................N...N.N.N.............................................\r\n  ...................................................................................................................................................\r\n  ...................................................................................................................................................\r\n  ...................................................................................................................................................\r\n  ...................................................................\r\n  Tests run: 1230, Errors: 0, Failures: 1, Inconclusive: 0, Time: 1,24968269824863 seconds\r\n    Not run: 6, Invalid: 0, Ignored: 6, Skipped: 0\r\n\r\n  Errors and Failures:\r\n  1) Test Failure : Autofac.Tests.Core.DependencyResolutionExceptionTests.Message_NoMessageOrInnerException\r\n       The message should not be modified if there is no inner exception.\r\n    Expected string length 74 but was 90. Strings differ at index 1.\r\n    Expected: \"Exception of type 'Autofac.Core.DependencyResolutionException...\"\r\n    But was:  \"Er is een uitzondering opgetreden van het type Autofac.Core.D...\"\r\n    ------------^\r\n```"}}