المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Getting LINQtoSQL to work with FitNesse



C# Programming
06-15-2009, 07:00 PM
Greetings all,
Being as this is my first posting, please be forgiving on any breaches of etiquet.

I am using FitNesse to test some C# code and am having so problems with it.
My C# fixture has a method to initialise my tests that takes a CSV file and using LINQtoSQL, inserts a bunch of rows into a SQL database so I have a database in a known state.

When I run this method using a console application it works fine and my database is populated.

when I run this using FitNesse, the method fails. It gets as far as creating a LINQ context object for the database but when I check to see that the database exists (which it does. I do not create it on the fly.), the check comes back a false!http://www.barakasoft.com/script/Forums/Images/smiley_frown.gif

Does anyone know why this would be different? Can anyone offer any solutions/ideas?

Any help would be gratefully appreciated.
Thanks in advance,
Nick.