private void Shell32Info_InitializeInstance(bool isNetwork)
        {
            UnitTestConstants.PrintUnitTestHeader(isNetwork);

            var tempPath = System.IO.Path.GetTempPath();

            if (isNetwork)
            {
                tempPath = Alphaleonis.Win32.Filesystem.Path.LocalToUnc(tempPath);
            }


            using (var rootDir = new TemporaryDirectory(tempPath, "Shell32Info.Initialize_Instance"))
            {
                var file = rootDir.RandomFileFullPath + ".txt";

                var shell32Info = new Alphaleonis.Win32.Filesystem.Shell32Info(file);

                Assert.IsTrue(shell32Info != null);

                UnitTestConstants.Dump(shell32Info, -15);
            }

            Console.WriteLine();
        }
Пример #2
0
        private void AlphaFS_Shell32Info_InitializeInstance(bool isNetwork)
        {
            using (var tempRoot = new TemporaryDirectory(isNetwork))
            {
                var file = tempRoot.RandomTxtFileFullPath;

                var shell32Info = new Alphaleonis.Win32.Filesystem.Shell32Info(file);

                Assert.IsTrue(null != shell32Info);

                UnitTestConstants.Dump(shell32Info);
            }

            Console.WriteLine();
        }