提交 f6ec20c3 编写于 作者: D Dennis Fischer

fix test failures caused by localization

上级 d9bc2bb3
......@@ -30,7 +30,7 @@ public void IncorrectPathmaps()
}
catch (ArgumentException argException)
{
Assert.Equal(CodeAnalysisResources.NullValueInPathMap + "\r\nParameter name: pathMap", argException.Message);
Assert.Equal(new ArgumentException(CodeAnalysisResources.NullValueInPathMap, "pathMap").Message, argException.Message);
}
// Empty pathmap value doesn't throw
......@@ -52,7 +52,7 @@ public void BadBaseDirectory()
}
catch (ArgumentException argExeption)
{
Assert.Equal(CodeAnalysisResources.AbsolutePathExpected + "\r\nParameter name: baseDirectory", argExeption.Message);
Assert.Equal(new ArgumentException(CodeAnalysisResources.AbsolutePathExpected, "baseDirectory").Message, argExeption.Message);
}
}
}
......
......@@ -1150,7 +1150,7 @@ public void Exception()
Assert.Equal("", output);
Assert.DoesNotContain("Unexpected", error, StringComparison.OrdinalIgnoreCase);
Assert.True(error.StartsWith("System.Exception: Exception of type 'System.Exception' was thrown."));
Assert.True(error.StartsWith(new Exception().ToString()));
}
#region Submission result printing - null/void/value.
......
......@@ -181,7 +181,7 @@ > div(10, 2)
5
> div(10, 0)
«Red»
Attempted to divide by zero.
{new System.DivideByZeroException().Message}
«DarkRed»
+ Submission#0.div(Int32 a, Int32 b)
«Gray»
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册