/// <summary> /// Initialize ProjectConfig and internal projectMgr objects. /// </summary> /// <remarks>Service function. Before calling this function projectNode must be /// initialized by valid project data.</remarks> protected void PrepareProjectConfig() { object[] ppUnk = new object[2]; ProjectConfig pjc = new ProjectConfig(projectNode, "manualSetConfigArgument"); ppUnk[0] = pjc; generalPropertyPage.SetObjects(1, ppUnk); }
private void SetProjectConfig() { object[] ppUnk = new object[2]; ProjectConfig config = new ProjectConfig(projectNode, "manualSetConfig"); ppUnk[0] = config; generalPropertyPage.SetObjects(1, ppUnk); }
public void ApplyChangesNullableProjectMgrTest() { GeneralPropertyPage target = generalPropertyPage; // sets indirectly projectMgr to null target.SetObjects(0, null); int actual = gppAccessor.ApplyChanges(); Assert.IsNull(target.ProjectMgr, "ProjectMgr instance was not initialized to null as it expected."); Assert.AreEqual(VSConstants.E_INVALIDARG, actual, "Method ApplyChanges() was returned unexpected value in case of uninitialized project instance."); }