简体   繁体   中英

fitSharp unable to find my fixture

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM