简体   繁体   English

fitSharp无法找到我的装置

[英]fitSharp unable to find my fixture

I'm new to C#; 我是C#的新手。 I'm trying to get fitSharp working with a fixture which always returns a hard-coded string ("hi"). 我正在尝试使fitSharp与始终返回硬编码字符串(“ hi”)的灯具一起使用。 Pretty much no matter what I do, I get "Could not find class fixture.FitNesseDemoFixture". 几乎无论我做什么,我都会得到“找不到类夹具。FitNesseDemoFixture”。

I'm developing with Xamarin community edition, and running Java 1.6. 我正在使用Xamarin社区版进行开发,并且正在运行Java 1.6。 and Mono. 和单声道。

I've copied the fixture DLL into the same directory as the fitSharp.dll and fit.dll files; 我已将夹具DLL复制到与fitSharp.dll和fit.dll文件相同的目录中; this is also the directory from which I start the FitNesse server. 这也是我启动FitNesse服务器的目录。 I've verified my fixture class is exported in the .dll. 我已验证我的灯具类已在.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? 关于我在做什么错的任何想法吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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