Пример #1
0
        public void UserDirectory()
        {
            using var pfs = new PhysFS("");
            var userDirectory    = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
            var pfsUserDirectory = pfs.GetUserDir();

            Path.GetPathRoot(pfsUserDirectory).Should().Be(Path.GetPathRoot(userDirectory));
        }
 void UserDirectory()
 {
     using (var pfs = new PhysFS(""))
     {
         var userDirectory    = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
         var pfsUserDirectory = pfs.GetUserDir();
         Assert.Equal(Path.GetPathRoot(userDirectory), Path.GetPathRoot(pfsUserDirectory));
     }
 }
 static bool GetUserDirectory(string[] args)
 {
     Console.WriteLine(physFS.GetUserDir());
     return(true);
 }