For Programmers: Free Programming Magazines  


Home > Archive > Extreme Programming > July 2005 > Help - FitNesse doesn't work with DotNet









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Help - FitNesse doesn't work with DotNet
Frosty Madness

2005-07-25, 4:18 am

I have a page...

!define COMMAND_PATTERN {%m %p}
!define TEST_RUNNER {dotnet\FitServer.exe}
!define PATH_SEPARATOR {;}
!path D:\TestWiki\TestWiki.AcceptanceTests\bin\Release\*.dll

This is the test page for the Divider library.

|TestWiki.AcceptanceTests.DividerFixture|
|numerator|denominator|quotient?|
|10 |2 |5 |
|12.6 |3 |4.2 |
|100 |4 |33 |


And I have a test class....

using System;
using fit;

namespace TestWiki.AcceptanceTests
{
public class DividerFixture : ColumnFixture
{
public double numerator, denominator;

public double quotient()
{
return numerator/denominator;
}
}
}

Yet the error I get is....

System.ApplicationException:
Type 'testwikiacceptancetestsdividerfixture'
could not be found in assemblies.
Assemblies searched:
file:///D:/TestWiki/TestWiki.AcceptanceTests/bin/Release/fit.dll

file:///D:/TestWiki/TestWiki.AcceptanceTests/bin/Release/TestWiki.Acce
ptanceTests.dll

at fit.ObjectFactory.GetInstance(TypeName typeName, Assembly
assembly,
Type type)
at fit.ObjectFactory.GetTypeOrInstance(TypeName typeName,
GetTypeOrInstanceDelegate getTypeOrInstance)
at fit.ObjectFactory.CreateInstance(String submittedName)
at fit.Fixture.LoadFixture(String className)
at fit.Fixture.DoTables(Parse tables)


It seems to be looking for 'testwikiacceptancetestsdividerfixture'
when it
should be looking for 'TestWiki.AcceptanceTests.DividerFixture'.
What's
wrong with it? It's looking in the correct assembly, just not finding
it.

Any responses are most welcome, my company is about to drop FitNesse
before we've even had a good run with it, and I'm looking a bit daft
for saying that it supports DotNet ;¬) .

Frosty.


E. U. Reka

2005-07-25, 5:31 pm

try the fitnesse mailing list (yahoo forum), or some blogs out there
may have the solution. try pasting the exception into the google
search box, that usually turns up something.

Tim Haughton

2005-07-28, 4:00 am


"Frosty Madness" <frosty.madness@gmail.com> wrote in message
news:GV0Fe.556212$pI6.91055@fe06.news.easynews.com...
> I have a page...
>
> !define COMMAND_PATTERN {%m %p}
> !define TEST_RUNNER {dotnet\FitServer.exe}
> !define PATH_SEPARATOR {;}
> !path D:\TestWiki\TestWiki.AcceptanceTests\bin\Release\*.dll
>
> This is the test page for the Divider library.
>
> |TestWiki.AcceptanceTests.DividerFixture|
> |numerator|denominator|quotient?|
> |10 |2 |5 |
> |12.6 |3 |4.2 |
> |100 |4 |33 |


Avoid Pascal notation for anything other than Wiki pages, it just makes life
complicated. Change your fixture to Camel and use Camel for all members on
your fixtures. I know it's not the .Net way, but hey...

FitNesse is very quirky, at least from the perspective of a .Net developer.
Once you learn its quirks, life gets easier.

--
Regards,

Tim Haughton

Agitek
http://agitek.co.uk
http://blogitek.com/timhaughton


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com