public void TestSQLiteNoPort()
 {
     String conn =
         new ConnectionStringSQLiteFactory().GetConnectionString("testserver", "testdb",
                                                                                      "testusername",
                                                                                      "testpassword", "");
     Assert.AreEqual(
         "Data Source=testdb;Password=testpassword;BinaryGUID=False", conn,
         "ConnectionStringFactory not working for SQLite");
 }
        public void TestSQLiteNoDatabaseName()
        {
            try
            {
                String conn =
                    new ConnectionStringSQLiteFactory().GetConnectionString("testserver", "", "testusername",
                                                                            "testpassword", "testport");

                Assert.Fail("Expected to throw an Argument");
            }
                //---------------Test Result -----------------------
            catch (ArgumentException ex)
            {
                StringAssert.Contains("The database parameter of a connect string can never be empty", ex.Message);
            }
        }