Assert on write event.