public int GetSecurityByName(string pFileName, out uint pFileAttributes, ref byte[] pSecurityDescriptor)
 {
     if (FileActions.Exists(pFileName))
     {
         new PassthroughFile(
             FileSystem.FileInfo.FromFileName(PathNormalizer.ConcatPath(SourcePath, pFileName))
             )
         .GetSecurityByName(
             out pFileAttributes,
             ref pSecurityDescriptor
             );
         return(FileSystemStatus.STATUS_SUCCESS);
     }
     pFileAttributes = default;
     return(FileSystemStatus.STATUS_SUCCESS);
 }
        public void TestExists()
        {
            //Arrange
            var fs    = new MockFileSystem();
            var file1 = @"c:\my\file1.txt";
            var file2 = @"c:\my\other\folder\file2.txt";

            fs.Directory.CreateDirectory(@"c:\my");
            fs.File.Create(file1);

            //Act
            var a  = new FileActions(fs);
            var r1 = a.Exists(file1);
            var r2 = a.Exists(file2);

            //Assert
            Assert.IsTrue(r1);
            Assert.IsFalse(r2);
        }