public void AlterColumn()
        {
            var context   = new MigrationContext(DatabaseProviders.SqlServerCE, null, Mock.Of <ILogger>());
            var migration = new AlterColumnMigration(new SqlCeSyntaxProvider(), Mock.Of <ILogger>());

            migration.GetUpExpressions(context);

            Assert.That(context.Expressions.Count, Is.EqualTo(1));
            Assert.That(context.Expressions.Single().ToString(), Is.EqualTo("ALTER TABLE [bar] ALTER COLUMN [foo] UniqueIdentifier NOT NULL"));
        }
        public void AlterColumn()
        {
            var database  = new TestDatabase();
            var context   = new MigrationContext(database, _logger);
            var migration = new AlterColumnMigration(context);

            migration.Migrate();

            foreach (var op in database.Operations)
            {
                Console.WriteLine("{0}\r\n\t{1}", op.Text, op.Sql);
            }

            Assert.That(database.Operations.Count, Is.EqualTo(1));
            Assert.That(database.Operations[0].Sql, Is.EqualTo("ALTER TABLE [bar] ALTER COLUMN [foo] UniqueIdentifier NOT NULL"));
        }