Underlying Provider Failed on Open
问题 I have a Test that i am running from NUnit but it keeps failing [Test] public void CheckTeamsExist() { UsersContext context = new UsersContext(); var count = context.Events.Count(); Assert.AreSame(true, count > 10); } The exact error message i am getting is QUBBasketballMVC.Tests.Controllers.TeamContextTest.CheckTeamsExist: System.Data.EntityException : The underlying provider failed on Open. ----> System.Data.SqlClient.SqlException : An attempt to attach an auto-named database for file C: