You can make sure it doesn't throw away at least
Assert.DoesNotThrow<ExceptionType>( () => myClass.myMethod() );
However, keep in mind that a method that does not return a value but does something relies on side effects and, therefore, is not amenable to unit testing, since you cannot test the entire state of the system in unit test.
Aidan source share