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); }
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 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); }
public void NormalProject_RoundTrip() { doc.LoadXml(NUnitProjectXml.NormalProject); CheckContents(NUnitProjectXml.NormalProject); }
public void RenameConfigMakesProjectDirty() { doc.LoadXml(NUnitProjectXml.NormalProject); project.Configs[0].Name = "New"; Assert.IsTrue(doc.HasUnsavedChanges); }