containOnlyPropertiesWithVisibility

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