public void WhenPathNullOrEmpty_Throws(string path)
            {
                Reader = new FileSystemSecurityDescriptorReader(path);
                Action compute = () => Reader.GetSecurityDescriptor();

                Assert.Throws <ArgumentException>(compute);
            }
            public void WhenPathDoesNotExist_Throws()
            {
                Reader = new FileSystemSecurityDescriptorReader(@"c:\IMAGINARY\NONEXISTENT\PATH");
                Action compute = () => Reader.GetSecurityDescriptor();

                Assert.Throws <ArgumentException>(compute);
            }
 public void WhenPathNullOrEmpty_Throws(string path)
 {
     Reader = new FileSystemSecurityDescriptorReader(path);
     Action compute = () => Reader.GetSecurityDescriptor();
     Assert.Throws<ArgumentException>(compute);
 }
 public void WhenPathDoesNotExist_Throws()
 {
     Reader = new FileSystemSecurityDescriptorReader(@"c:\IMAGINARY\NONEXISTENT\PATH");
     Action compute = () => Reader.GetSecurityDescriptor();
     Assert.Throws<ArgumentException>(compute);
 }
 private RawSecurityDescriptor GetPathDescriptor(string path)
 {
     Reader = new FileSystemSecurityDescriptorReader(path);
     return Reader.GetSecurityDescriptor();
 }
 private RawSecurityDescriptor GetPathDescriptor(string path)
 {
     Reader = new FileSystemSecurityDescriptorReader(path);
     return(Reader.GetSecurityDescriptor());
 }