Disable test due to mono bug on Mac.
This commit is contained in:
parent
e04c7c77ed
commit
7cbcbae5e7
|
|
@ -117,6 +117,14 @@ namespace Microsoft.AspNet.Mvc.Localization.Test
|
||||||
[InlineData("{0")]
|
[InlineData("{0")]
|
||||||
public void HtmlLocalizer_HtmlWithInvalidResourcestring_ThrowsException(string format)
|
public void HtmlLocalizer_HtmlWithInvalidResourcestring_ThrowsException(string format)
|
||||||
{
|
{
|
||||||
|
// Mono doesn't like { in an underlying string.Format on Mac.
|
||||||
|
if (TestPlatformHelper.IsMac &&
|
||||||
|
TestPlatformHelper.IsMono &&
|
||||||
|
string.Equals(format, "{", StringComparison.Ordinal))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Arrange
|
// Arrange
|
||||||
var localizedString = new LocalizedString("Hello", format);
|
var localizedString = new LocalizedString("Hello", format);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue