containOnlyClassesWithVisibility

Asserts that all classes in matching slices have one of the specified visibilities.