Exemplo n.º 1
0
        private void Open_Click(object sender, EventArgs e)
        {
            string   file = folderLister1.tb.Text;
            TreeView b    = VSExplorer.LoadProject(file);

            VSExplorer.Loads2(b, sn);

            vs = b.Tag as VSSolution;
        }
Exemplo n.º 2
0
        public void LoadSolutionTests()
        {
            string folder = "NUnit-folder";

            if (File.Exists("cs-syntax.conf") == true)
            {
                string c = File.ReadAllText("cs-syntax.conf");

                if (Path.IsPathRooted(c) == true)
                {
                    folder = c;
                }
                else
                {
                    string s = AppDomain.CurrentDomain.BaseDirectory + c;

                    if (Directory.Exists(s) == true)
                    {
                        folder = s;
                    }
                }
            }

            string folders = AppDomain.CurrentDomain.BaseDirectory + folder;

            FolderSearch(folders, ".sln");


            foreach (string file in F)
            {
                //string file = "..\\..\\..\\VStudio.sln";
                b = VSExplorer.LoadProject(file);
                Assert.That(b, Is.Not.Null);

                vs = b.Tag as VSSolution;
                Assert.That(vs, Is.Not.Null);
            }
        }
Exemplo n.º 3
0
        public void LoadVESolution()
        {
            string folder = AppDomain.CurrentDomain.BaseDirectory;

            string folders = folder + "\\..\\..\\..\\VStudio.sln";

            folders = "C:\\Bin\\roslyn-master\\Roslyn.sln";


            b = VSExplorer.LoadProject(folders);

            Assert.IsNotNull(b);

            vs = b.Tag as VSSolution;



            F = new ArrayList();
            F.Add(vs);
            Assert.IsNotNull(vs);

            Directory.SetCurrentDirectory(folder);
        }