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."); }
public void ApplyChangesTest() { PrepareProjectConfig(); int actual = gppAccessor.ApplyChanges(); Assert.AreEqual(VSConstants.S_OK, actual, "Method ApplyChanges() was returned unexpected value in case of initialized project instance."); }