Bug 59991 - TestCase with unicode strings does not work
Summary: TestCase with unicode strings does not work
Status: NEW
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: NUnit (show other bugs)
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: Future Cycle (TBD)
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2017-10-05 16:28 UTC by Marius Ungureanu
Modified: 2017-10-06 06:41 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Marius Ungureanu 2017-10-05 16:28:56 UTC
Given the following test case:

[TestCase ("バージョン", 1, 3, 4, 1)]
public void TextIndexerWorks (string arg, int index, int indexToByteIndex, int byteIndex, int byteIndexToIndex)
{
}

when running the test, you get the following message:

No tests found that match filter: [SimpleNameFilter]: MonoDevelop.Components.PangoUtilTests.TextIndexerWorks("\x30D0\x30FC\x30B8\x30E7\x30F3",1,3,3,1)

The problem is that when requesting test info from the runner, the unicode string comes in with escaped `\` in `\x`.

NUnit 3 works fine. I assume this is a bug in NUnit 2. We should workaround this issue, but not sure what to do when the test case actually should take that value.

Note You need to log in before you can comment on or make changes to this bug.