Why not move this assertion to the beginning of this method? Currently assertion does not fail if tests list is empty but this method is called while running on Windows system.