Exemplo n.º 1
0
        public void InsertsGoBetweenScripts()
        {
            var script = new DbScript();

            script.AddScript("FIRST;");
            script.AddScript("SECOND;");
            Assert.Equal(
                TestSqlHelper.Normalize("FIRST;GO\nSECOND;"),
                TestSqlHelper.Normalize(script.ToString()));
        }
Exemplo n.º 2
0
        public void CanAddScriptProperly()
        {
            var script = new DbScript();

            script.AddScript("HELLO");
            Assert.Equal(
                TestSqlHelper.Normalize("HELLO"),
                TestSqlHelper.Normalize(script.ToString()));
        }