public void SetValue () { // SecuritySettings only provides getters - trying SetValue throws SecuritySettings ss = new SecuritySettings (); Assert.Throws<ArgumentException> (delegate { ss.SetValue (SecuritySettings.ElevatedPermissionsProperty, ElevatedPermissions.Required); }, "ElevatedPermissionsProperty"); }
public void SetValue() { // SecuritySettings only provides getters - trying SetValue throws SecuritySettings ss = new SecuritySettings(); Assert.Throws <ArgumentException> (delegate { ss.SetValue(SecuritySettings.ElevatedPermissionsProperty, ElevatedPermissions.Required); }, "ElevatedPermissionsProperty"); }