public void Initialize()
 {
     IProjectDocument doc = new ProjectDocument();
     doc.LoadXml(NUnitProjectXml.EmptyConfigs);
     model = new ProjectModel(doc);
     dlg = Substitute.For<IRenameConfigurationDialog>();
     presenter = new RenameConfigurationPresenter(model, dlg, "Debug");
 }
        public void Initialize()
        {
            IProjectDocument doc = new ProjectDocument();

            doc.LoadXml(NUnitProjectXml.EmptyConfigs);
            model     = new ProjectModel(doc);
            dlg       = Substitute.For <IRenameConfigurationDialog>();
            presenter = new RenameConfigurationPresenter(model, dlg, "Debug");
        }
        public void SetUp()
        {
            IProjectDocument doc = new ProjectDocument();
            doc.LoadXml(NUnitProjectXml.NormalProject);
            model = new ProjectModel(doc);

            dlg = Substitute.For<IAddConfigurationDialog>();

            presenter = new AddConfigurationPresenter(model, dlg);
        }
        public void Initialize()
        {
            ProjectDocument doc = new ProjectDocument();
            doc.LoadXml(NUnitProjectXml.NormalProject);
            model = new ProjectModel(doc);

            view = Substitute.For<IConfigurationEditorDialog>();

            editor = new ConfigurationEditor(model, view);
        }
        public void Initialize()
        {
            ProjectDocument doc = new ProjectDocument();

            doc.LoadXml(NUnitProjectXml.NormalProject);
            model = new ProjectModel(doc);

            view = Substitute.For <IConfigurationEditorDialog>();

            editor = new ConfigurationEditor(model, view);
        }
Beispiel #6
0
        public void SetUp()
        {
            IProjectDocument doc = new ProjectDocument();

            doc.LoadXml(NUnitProjectXml.NormalProject);
            model = new ProjectModel(doc);

            dlg = Substitute.For <IAddConfigurationDialog>();

            presenter = new AddConfigurationPresenter(model, dlg);
        }
Beispiel #7
0
        public void LoadEmptyProject()
        {
            doc.LoadXml(NUnitProjectXml.EmptyProject);

            Assert.AreEqual(Path.GetFullPath(xmlfile), project.ProjectPath);

            Assert.AreEqual(null, project.BasePath);
            Assert.AreEqual(Path.GetDirectoryName(project.ProjectPath), project.EffectiveBasePath);

            Assert.AreEqual("Default", project.ProcessModel);
            Assert.AreEqual("Default", project.DomainUsage);

            Assert.AreEqual(0, project.Configs.Count);
            Assert.AreEqual(0, project.ConfigNames.Length);

            Assert.AreEqual(null, project.ActiveConfigName);
        }
Beispiel #8
0
 public void NormalProject_RoundTrip()
 {
     doc.LoadXml(NUnitProjectXml.NormalProject);
     CheckContents(NUnitProjectXml.NormalProject);
 }
Beispiel #9
0
 public void RenameConfigMakesProjectDirty()
 {
     doc.LoadXml(NUnitProjectXml.NormalProject);
     project.Configs[0].Name = "New";
     Assert.IsTrue(doc.HasUnsavedChanges);
 }