我正在尝试在我的 .NET FitNesse 夹具中使用符号,使用 FitSharp 的最新版本(release.1.8.net.40.zip),如下所示:
!|Player Registers |
|username|password|player id?|
|john |test123 |>>player |
符号“玩家”被忽略:
[1] 预期 [>>玩家]
我试图加载处理程序:
!|Cell Handler Loader |
|load|SymbolSaveHandler |FitLibrary|
|load|SymbolRecallHandler|FitLibrary|
但这似乎不起作用:
找不到类 CellHandlerLoader
有一些库更改,如下所述:http: //fitsharp.github.com/Fit/BreakingChanges.html
任何帮助,将不胜感激。
谢谢!
更新:
我的夹具代码:
namespace Example.Tests.FitNesse {
public class PlayerRegisters : ColumnFixture {
public string Username;
public string Password;
public int PlayerId() {
return 1;
}
}
}
套件配置文件(example.config.xml):
<suiteConfig>
<ApplicationUnderTest>
<AddAssembly>c:\Users\Marcel\Documents\dev\dotnet\Example.Tests.FitNesse\bin\x86\Debug\Example.Tests.FitNesse.dll</AddAssembly>
<AddNamespace>Example.Tests.FitNesse</AddNamespace>
</ApplicationUnderTest>
</suiteConfig>
和 FitNesse 根页面:
!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {%m -c c:\fitnesse\dotnet\example.config.xml -r fitSharp.Slim.Service.Runner,c:\fitnesse\dotnet\fitsharp.dll}
!define TEST_RUNNER {c:\fitnesse\dotnet\Runner.exe}
我尝试将fit.dll包含到我的程序集中:https ://github.com/jediwhale/fitsharp/issues#issue/62
还尝试添加一些运算符...