Exemplo n.º 1
0
        public void TestChangeScriptsHaveAnIdAndAFile()
        {
            FileInfo     file         = new FileInfo("abc.txt");
            ChangeScript changeScript = new ChangeScript(5, file, Encoding.Default);

            Assert.AreEqual(5, changeScript.GetId());
            Assert.AreEqual(file, changeScript.GetFile());
        }
Exemplo n.º 2
0
        public void TestChangeScriptsHaveAnIdAndAFile()
        {
            FileInfo file = new FileInfo("abc.txt");
            ChangeScript changeScript = new ChangeScript(5, file, Encoding.Default);

            Assert.AreEqual(5, changeScript.GetId());
            Assert.AreEqual(file, changeScript.GetFile());
        }
        public void ApplyChangeUndoScript(ChangeScript script)
        {
            output.WriteLine();
            output.WriteLine("-- Change script: " + script);
			
			if (_useTransaction)
				output.WriteLine(_dbmsSyntax.GenerateBeginTransaction());

			CopyFileUndoContentsToStdOut(script.GetFile());

			if (_useTransaction)
				output.WriteLine(_dbmsSyntax.GenerateCommitTransaction());
		}
Exemplo n.º 4
0
 protected void TearDown()
 {
     script.GetFile().Delete();
 }