testing-logic

Unit Testing something that returns nothing, how to assert?

How would you assert code like this? What would be the best approach to do so? public void doSomething(int myProperty){ if (myProperty == 0) return; // If myProperty is not zero, do something in the method } ...