Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Interesting bug with nUnit TestCase support
JeetKunDoug
#1 Posted : Friday, September 2, 2011 8:20:36 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/2/2011(UTC)
Posts: 2

This test runs and passes using Resharper's test runner and nUnit, but for some reason nCrunch can't parse it.

Code:
using NUnit.Framework;

namespace NCrunchTestCase
{
    [TestFixture]
    public class TestCaseTests
    {
        [TestCase("(")]
        public void OpenParenBreaksNCrunch(string original)
        {
            Assert.True(true);
        }
    }
}


Submitted a bug report via nCrunch as well. And btw - thanks for supporting TestCase - I just removed about 100 lines of duplicate code in a test suite which makes me happy.
Remco
#2 Posted : Friday, September 2, 2011 8:51:11 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,636

Thanks: 873 times
Was thanked: 1184 time(s) in 1104 post(s)
Thanks for reporting this one - I got your bug report too and it makes perfect sense.

NCrunch is using the brackets to identify the structure of the test case (this is just how NUnit is working internally). It should be an easy one to fix I think :)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.019 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download