I have two files. One is my test file, Tests.cs:
using NUnit.Framework;
[TestFixture]
public class HelloTest
{
[Test]
public void Stating_something ()
{
Assert.That(Greeter.Hello(), Is.EqualTo("Hello world."));
}
}
The other is Greeter.cs:
public class Greeter
{
public static string Hello(string statement)
{
return "Hello world.";
}
}
How do I run these from the command line on a Mac?
For a simple script, I can run:
mcs -out:Script.exe Script.cs
mono Script.exe
But when I try to run mcs -out:Tests.exe Tests.cs, I get an error: error CS0246: The type or namespace name `NUnit' could not be found. Are you missing an assembly reference?
And if that were fixed, the Tests file isn't referencing the Greeter file anyway, so how do I make it find it?