public void ReadOnly_should_generate_InvalidOperationException_on_clears(IProperties ro) { Assert.Throws <InvalidOperationException>(() => ro.ClearProperty("a")); Assert.Throws <InvalidOperationException>(() => ro.ClearProperties()); }