Getting LINQtoSQL to work with FitNesse
-
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! :( Does anyone know why this would be different? Can anyone offer any solutions/ideas? Any help would be gratefully appreciated. Thanks in advance, Nick.