Mono test should be at runtime

Bug #432573 reported by Charlie Poole
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit Framework
Fix Released
High
Charlie Poole
NUnit V2
Fix Released
High
Andreas Schlapsi

Bug Description

The test MsgUtilsTests.EscapeControlCharsTest fails with [TestCase("\0", "\\0")] when the framework is compiled under .NET but tested under Mono. The test should be excluded under Mono but is not because a compile-time condition is used.

This should be fixed in some way. Options are:

* Remove the test for all platforms
* Make it a separate test rather than a test case and use PlatformAttribute
* Add a Platform named parameter to TestCaseAttribute and use it.

It's possible that other compile-time tests for mono may cause the same problem.

Related branches

Changed in nunit-3.0:
assignee: nobody → Charlie Poole (charlie.poole)
importance: Undecided → High
milestone: none → 2.9.2
status: New → Confirmed
Changed in nunit-3.0:
status: Confirmed → In Progress
Revision history for this message
Charlie Poole (charlie.poole) wrote :

Fixed by creating a separate test. It appears that Mono has some issue with null characters in an attribute argument.

Changed in nunit-3.0:
status: In Progress → Fix Committed
Changed in nunitv2:
status: New → Confirmed
assignee: nobody → Andreas Schlapsi (a-schlapsi)
Changed in nunitv2:
status: Confirmed → In Progress
Changed in nunitv2:
status: In Progress → Fix Committed
Changed in nunitv2:
importance: Undecided → High
milestone: none → 2.5.4
Changed in nunitv2:
status: Fix Committed → Fix Released
Changed in nunit-3.0:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.