adeel41
adeel41

Reputation: 3321

How to run tests in Nemerle project

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?

Upvotes: 0

Views: 116

Answers (1)

user299771
user299771

Reputation: 175

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

Upvotes: 0

Related Questions