Beispiel #1
0
        public void TestAnonymizePathWithUserDirectory()
        {
            string userDirectory  = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
            string path           = System.IO.Path.Combine(userDirectory, "test");
            string anonymizedPath = PathUtilities.AnonymizePath(path);

            Assert.AreEqual(@"%USERPROFILE%\test", anonymizedPath);
        }