Disable test due to mono bug on Mac.

This commit is contained in:
N. Taylor Mullen 2015-09-10 12:10:09 -07:00
parent e04c7c77ed
commit 7cbcbae5e7
1 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,14 @@ namespace Microsoft.AspNet.Mvc.Localization.Test
[InlineData("{0")]
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
var localizedString = new LocalizedString("Hello", format);