public void ReadOnly_Clear () { SettingsPropertyCollection col = new SettingsPropertyCollection (); SettingsProperty test_prop = new SettingsProperty ("test_prop"); col.Add (test_prop); col.SetReadOnly (); col.Clear (); }
public void Clear () { SettingsPropertyCollection col = new SettingsPropertyCollection (); SettingsProperty test_prop = new SettingsProperty ("test_prop"); col.Add (test_prop); Assert.AreEqual (1, col.Count, "A1"); col.Clear (); Assert.AreEqual (0, col.Count, "A2"); }