Build/Test Issues

Interesting bug with nUnit TestCase support

Started by JeetKunDoug on 6,912 views

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

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.

Edited

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 :)

Post a reply

Log in to reply.