Exemple #1
0
 public void GetAccessControl_NullArgument_Throws()
 {
     Assert.Throws <ArgumentNullException>(() => RegistryAclExtensions.GetAccessControl(null));
     Assert.Throws <ArgumentNullException>(() => RegistryAclExtensions.GetAccessControl(null, System.Security.AccessControl.AccessControlSections.All));
 }
Exemple #2
0
 public void SetAccessControl_NullArgument_Throws()
 {
     Assert.Throws <ArgumentNullException>(() => RegistryAclExtensions.SetAccessControl(null, new System.Security.AccessControl.RegistrySecurity()));
 }
 public void GetAccessControl_NullArgument_Throws()
 {
     Assert.Throws <NullReferenceException>(() => RegistryAclExtensions.GetAccessControl(null));
 }