public override void Generate( CreateDatabaseOperation createDatabaseOperation, IndentedStringBuilder stringBuilder) { throw new NotSupportedException(Strings.FormatMigrationOperationNotSupported( GetType(), createDatabaseOperation.GetType())); }
public void Generate_with_create_database_not_supported() { var operation = new CreateDatabaseOperation("Bronies"); Assert.Equal( Strings.FormatMigrationOperationNotSupported(typeof(SQLiteMigrationOperationSqlGenerator), operation.GetType()), Assert.Throws <NotSupportedException>(() => Generate(operation)).Message); }