Пример #1
0
		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");
		}
Пример #2
0
        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");
        }