Unit Testing with Linq to Sql

I am working on a small personal project to learn some new things.  One my objectives is to follow the test first methodology. Something I just discovered was using SQLExpress to dynamically create databases on the fly, which makes setting up unit tests really easy. You can provide a connection string to a local database create it and add any data required for testing.  When you are finished just delete the database.

Using Nunit you can structure your tests in a couple of ways, you can have a setup per class, or you can do setup per test. This is accomplished with the TestFixtureSetUp, and SetUp attributes respectively.  When doing setup you should also do clean up, this is done via TestFixtureTearDown, and TearDown.
    private CollectionsDataContext db = null;
    [TestFixtureSetUp]
    public void SetupTests()
    {
        db = new CollectionsDataContext(Utilities.CollectionDb);
        if(db.DatabaseExists())
            db.DeleteDatabase();
        db.CreateDatabase();
        var user = new aspnet_User
                       {
                           ApplicationId = System.Guid.NewGuid(),
                           UserId = System.Guid.NewGuid(),
                           UserName = "TestUser",
                           LastActivityDate = DateTime.Now,
                           LoweredUserName = "testuser"
                       };
        db.aspnet_Users.InsertOnSubmit(user);
        db.SubmitChanges();
    }
    [TestFixtureTearDown]
    public void Cleanup()
    {
        db.DeleteDatabase();
    }
    [Test]
    public void GetUser()
    {
        var user = from u in db.aspnet_Users select u;
        foreach (var user1 in user)
        {
            Assert.AreSame("TestUser",user1.UserName);
        }
    }


One thing not to do is delete the database from the file system, it will then be in never never land. Using the Linq DeleteDatabase method removed the files from removed the files from the file system.

The database location is pulled from the app.config which currently looks like this for the Nunit tests.
<connectionStrings>
    <add name="CollectionLib.Properties.Settings.CollectionsConnectionString"
            connectionString="e:\temp\collections2.mdf"
            providerName="System.Data.SqlClient" />
</connectionStrings>

In the actual application it will point to a database on a server.