コード例 #1
0
        public void CheckCurrentVisualStudioMyDocumentsFolder()
        {
            string myVisualStudioDirectory = Path.Combine(myDocumentsDirectory, LatestVisualStudioName);

            Assert.AreEqual(myVisualStudioDirectory,
                            MyDocumentsExtensions.GetSupportedVisualStudioFolders()[0]);
        }
コード例 #2
0
 public void LogAvailableMyDocumentsFoldersForVisualStudio()
 {
     new ConsoleLogger();
     foreach (var supportedVsFolder in MyDocumentsExtensions.GetSupportedVisualStudioFolders())
     {
         if (Directory.Exists(supportedVsFolder))
         {
             Logger.Info(supportedVsFolder + " exists");
         }
         else
         {
             Logger.Info(supportedVsFolder + " does not exist");
         }
     }
 }