ApplyChanges() private method

private ApplyChanges ( ) : int
return int
示例#1
0
        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.");
        }
示例#2
0
        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.");
        }