kekyo / IL2C

IL2C - A translator for ECMA-335 CIL/MSIL to C language.
Apache License 2.0
401 stars 36 forks source link

Failed unit test on the non-en-us environment. #60

Closed kekyo closed 5 years ago

kekyo commented 5 years ago

Cause failure at the RuntimeSystems/ExceptionThrownByCLI tests.

        public static bool NullReference(object v)
        {
            try
            {
                var r = v.ToString();
            }
            catch (NullReferenceException ex)
            {
                // vvv The message strings different because internationalization strings on the .NET CLR.
                return ex.Message == "Object reference not set to an instance of an object.";
            }
            return false;
        }
kekyo commented 5 years ago

Manually tested on the VS2017 Japanese version.