我有一个简单的 C# Column 夹具类,可以独立测试。我有一个 sql server 表,它再次独立测试良好。如果我同时测试两者,首先测试 SQL 表,再次一切正常。但是,如果我先测试 C#,则 SQL 测试失败“在程序集中找不到类型‘连接’”
所以这很好用......
!define COMMAND_PATTERN {%m -r fitnesse.fitserver.FitServer %p}
!define TEST_RUNNER {fitsharp\Runner.exe}
!define PATH_SEPARATOR {;}
!path fitsharp/fit.dll
!path fitsharp/dbfit.sqlserver.dll
!|dbfit.SqlServerTest|
!|Connect|Data Source=localhost;integrated security=SSPI;Initial Catalog=Test2|
!|Query| select Colour from dbo.Colour|
|Colour|
|yellow-orange|
!path Fixtures.dll
!|Fixtures.SampleDo|
|firstPart|secondPart|together?|totalLength?|
|Hello|World|Hello, World|10|
|Houston|We Have a Problem|Houston, We Have a Problem|24|
...但是这通过简单地移动 Fixtures.dll 测试失败...
!define COMMAND_PATTERN {%m -r fitnesse.fitserver.FitServer %p}
!define TEST_RUNNER {fitsharp\Runner.exe}
!define PATH_SEPARATOR {;}
!path Fixtures.dll
!|Fixtures.SampleDo|
|firstPart|secondPart|together?|totalLength?|
|Hello|World|Hello, World|10|
|Houston|We Have a Problem|Houston, We Have a Problem|24|
!path fitsharp/fit.dll
!path fitsharp/dbfit.sqlserver.dll
!|dbfit.SqlServerTest|
!|Connect|Data Source=localhost;integrated security=SSPI;Initial Catalog=Test2|
!|Query| select Colour from dbo.Colour|
|Colour|
|yellow-orange|