I'm new to C#; I'm trying to get fitSharp working with a fixture which always returns a hard-coded string ("hi"). Pretty much no matter what I do, I get "Could not find class fixture.FitNesseDemoFixture".
I'm developing with Xamarin community edition, and running Java 1.6. and Mono.
I've copied the fixture DLL into the same directory as the fitSharp.dll and fit.dll files; this is also the directory from which I start the FitNesse server. I've verified my fixture class is exported in the .dll. Here's the fixture code:
using System;
using fit;
namespace fixture
{
public class FitNessDemoFixture : ColumnFixture {
public String result() {
return "hi";
}
}
}
... and here's the test page source code ...
!contents -R2 -g -p -f -h
!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {%m -r fitSharp.Slim.Service.Runner,fitSharp.dll %p}
!define TEST_RUNNER {C:\bin\FitNesse\Runner.exe}
!1 Define path
!path FitNesseDemo.dll
!1 Define test
|fixture.FitNesseDemoFixture|
|result?|
|hi|
Any ideas on what I'm doing wrong?
You can't use ColumnFixture with the Slim test system. See http://www.fitnesse.org/FitNesse.UserGuide.TestSystems and http://fitsharp.github.io/Slim.html and http://fitsharp.github.io/Fit.html