public void ShouldDisableWhenMergedWithRemoveOperation() { var op = new AddStoredProcedureOperation("schema", "name", "definition"); var removeOp = new RemoveStoredProcedureOperation("SCHEMA", "NAME"); op.Merge(removeOp); Assert.That(op.Disabled, Is.True); Assert.That(removeOp.Disabled, Is.True); }
public void ShouldNotRenameObjectIfDifferentObject() { var op = new AddStoredProcedureOperation("schema", "name", "definition"); var renameOp = new RenameObjectOperation("SCHEMA", "another_object", "newname"); op.Merge(renameOp); Assert.That(op.Disabled, Is.False); Assert.That(renameOp.Disabled, Is.False); Assert.That(op.Name, Is.EqualTo("name")); }