containOnlyPropertiesWithVisibility

Asserts that all top-level properties in matching modules have one of the specified visibilities.