Esempio n. 1
0
        public void can_connect_to_SQL_Server_using_Sequel_Connect_with_connection_string()
        {
            var db = Sequel.Connect("sqlserver://" + SqlServerConnectionString) as SqlServerDatabase;

            db.ConnectionString.ShouldEqual(SqlServerConnectionString);

            db.DatabaseNames.Count.Should(Be.GreaterThanOrEqualTo(4));

            new List <string> {
                "master", "tempdb", "model", "msdb"
            }.ForEach(name => {
                db.DatabaseNames.ShouldContain(name);
            });
        }