Writing Unit Tests in ASP.Net MVC with Code-First and EF4 and SQL CE4 -


I am reading Scott Gujarat's post on the first design of code with ASP.Net MVC 2.0 and EF4:

In the post, he uses the SQL CE4 database and 'Seed' test data for development.

My question is related to the test. It is widely believed that we should not write a 'clean up' code for reasons such as speed against a database and do not test to eliminate errors from the database.

If we use SQL CE4

thanks <<< p>

thanks

P>

I still use the memory store to check the SQL CE database instead of testing your preferred method) when you have full SQL There is not a chance to mess up against the server, even then, you believe that windows will not have any problem accessing the database file at any time. Any error reaching SQL CE at that time can cause all your tests to fail. There is less chance of having a problem in the memory store.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -