How to run tests in Nemerle project

146 Views Asked by At

How do I run tests which will test my nemerle code. So for example, I've a Calculator class and a CalculatorTests class in a nemerle project. I have already added a reference to nunit using package manager ("install-package nunit"). Now NUnit is available in nemerle project.

After writing following code

  [TestFixture]
  class CalculatorTests
  {
        [Test]
        MyTest() : void
        {
            def result = Calculator().Add( 1 );
            Assert.AreEqual( 2, result );
        }
  }

I tried to use TestDriven.net visual studio add-in to run the test but couldn't able to. Can someone tell me how to run tests in nemerle or do i have to write code to run all tests when executing a console app?

1

There are 1 best solutions below

0
On

Maybe it caused by NUnit runs under .Net 2.0 runtime. Try to set a runtime version in the NUnit command line.