Пример #1
0
        void LoadProject(string filename)
        {
            var splash = new LoaderForm();

            try
            {
                splash.Show();
                splash.Update();

                UnloadAssemblies(listAssemblies.Items);
                listAssemblies.Update();

                project = XunitProject.Load(filename);
                mruProjectList.Add(filename);

                foreach (XunitProjectAssembly assembly in project.Assemblies)
                {
                    AddTestAssembly(mate.Load(assembly.AssemblyFilename,
                                              assembly.ConfigFilename,
                                              assembly.ShadowCopy));
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error loading project:\r\n\r\n" + ex.Message, windowTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                splash.Close();
                splash.Dispose();
            }

            UpdateAssemblyDynamicMenus();
            UpdateProjectDynamicMenus();
        }
Пример #2
0
        public RunnerForm(string[] assemblyFilenames)
            : this()
        {
            using (var splash = new LoaderForm())
            {
                splash.Show();
                splash.Update();

                foreach (string assemblyFilename in assemblyFilenames)
                {
                    LoadAssembly(Path.GetFullPath(assemblyFilename), null);
                }

                splash.Close();
            }
        }
Пример #3
0
        void LoadProject(string filename)
        {
            var splash = new LoaderForm();

            try
            {
                splash.Show();
                splash.Update();

                UnloadAssemblies(listAssemblies.Items);
                listAssemblies.Update();

                project = XunitProject.Load(filename);
                mruProjectList.Add(filename);

                foreach (XunitProjectAssembly assembly in project.Assemblies)
                    AddTestAssembly(mate.Load(assembly.AssemblyFilename,
                                              assembly.ConfigFilename,
                                              assembly.ShadowCopy));
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error loading project:\r\n\r\n" + ex.Message, windowTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                splash.Close();
                splash.Dispose();
            }

            UpdateAssemblyDynamicMenus();
            UpdateProjectDynamicMenus();
        }
Пример #4
0
        public RunnerForm(string[] assemblyFilenames)
            : this()
        {
            using (var splash = new LoaderForm())
            {
                splash.Show();
                splash.Update();

                foreach (string assemblyFilename in assemblyFilenames)
                    LoadAssembly(Path.GetFullPath(assemblyFilename), null);

                splash.Close();
            }
        }