Skip to content

C#: NUnit test suite not working with built in mono on OSX please read suggestion #34

Description

@naruse

The tests assertions are written in the constraint-based model (which is pretty neat!) BUT even the latest mono (3.12.1) comes with NUnit 2.4.8, and the tests just dont work in the constraint-based model for that version; I solved this by downloading the latest version of NUnit (2.6)
found here http://nunit.org/index.php?p=download

How to repro: just try to build the 1rst excercise on C#

naruse@MacBook-Pro ~/exercism/csharp/leap $:dmcs Leap.cs LeapTest.cs -reference:nunit.framework.dll
LeapTest.cs(9,40): error CS0103: The name Is' does not exist in the current context LeapTest.cs(16,40): error CS0103: The nameIs' does not exist in the current context
LeapTest.cs(23,40): error CS0103: The name Is' does not exist in the current context LeapTest.cs(30,40): error CS0103: The nameIs' does not exist in the current context

as you can see it throws an error regarding the Is class (which is part of NUnit).

My suggestion is to say at least that it in order for the tests to run, it needs to run on a NUnit version > 2.4 and this NUnit version doesnt come embebed in the latest mono (3.12.1). so its better to download a version of NUnit from the web page ;)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions