public void TestMethod03_ActivateInactive_Prof2_TestGame01()
        {
            string errMsg   = "";
            string errlabel = "";
            int    retVal   = Errors.SUCCESS;

            // install game
            this.helperInstallTestGame01();

            // instantiate the profile manager
            this.manager = new SteamProfileManager(ProfileManagerTest.GAME01);

            // activate prof2
            retVal = this.manager.activateInactiveProfile(ProfileManagerTest.GAME01_PROF2,
                                                          ProfileManagerTest.GAME_COLOR,
                                                          ProfileManagerTest.GAME_CREATION_DATA);
            Assert.AreEqual(Errors.SUCCESS, retVal);

            // checar prof1
            retVal = this.manager.checkInstallation(ProfileManagerTest.GAME01_PROF2,
                                                    out errMsg,
                                                    out errlabel);
            string msg = "errMsg:" + errMsg + ", errlabel:" + errlabel;

            Assert.AreEqual(Errors.SUCCESS, retVal, msg);
        }
        public void TestMethod14_SwitchProfiles_Prof31_TestGame02()
        {
            // checar prof2
            string errMsg   = "";
            string errlabel = "";
            int    retVal   = Errors.SUCCESS;

            // instantiate the profile manager
            this.manager = new SteamProfileManager(ProfileManagerTest.GAME02);

            // switch  3 -> 1
            retVal = this.manager.switchProfile(ProfileManagerTest.GAME02_PROF3,
                                                ProfileManagerTest.GAME02_PROF1,
                                                out errMsg);

            Assert.AreEqual(Errors.SUCCESS, retVal);

            // check prof3
            retVal = this.manager.checkInstallation(ProfileManagerTest.GAME02_PROF3,
                                                    out errMsg,
                                                    out errlabel);
            Assert.AreEqual(Errors.SUCCESS, retVal);

            // check prof1
            retVal = this.manager.checkInstallation(ProfileManagerTest.GAME02_PROF1,
                                                    out errMsg,
                                                    out errlabel);
            Assert.AreEqual(Errors.SUCCESS, retVal);
        }
        public void TestMethod07_EditProfiles_Prof1_TestGame01()
        {
            // checar prof2
            string errMsg   = "";
            string errlabel = "";
            int    retVal   = Errors.SUCCESS;

            // instantiate the profile manager
            this.manager = new SteamProfileManager(ProfileManagerTest.GAME01);

            // switch  3 -> 1
            retVal = this.manager.editProfile(ProfileManagerTest.GAME01_PROF1,
                                              ProfileManagerTest.GAME01_PROF4,
                                              ProfileManagerTest.GAME_COLOR,
                                              out errMsg);

            Assert.AreEqual(Errors.SUCCESS, retVal);

            // check prof1
            retVal = this.manager.checkInstallation(ProfileManagerTest.GAME01_PROF4,
                                                    out errMsg,
                                                    out errlabel);
            string msg = "errMsg:" + errMsg + ", errlabel:" + errlabel;

            Assert.AreEqual(Errors.SUCCESS, retVal, msg);
        }
        public void TestMethod10_DesactivateActive_Prof1_TestGame02()
        {
            string errMsg   = "";
            string errlabel = "";
            int    retVal   = Errors.SUCCESS;

            // instantiate the profile manager
            this.manager = new SteamProfileManager(ProfileManagerTest.GAME02);

            // desactivate prof1
            retVal = this.manager.desactivateActiveProfile(ProfileManagerTest.GAME02_PROF1,
                                                           out errMsg);
            Assert.AreEqual(Errors.SUCCESS, retVal);

            // checar prof1
            retVal = this.manager.checkInstallation(ProfileManagerTest.GAME02_PROF1,
                                                    out errMsg,
                                                    out errlabel);
            Assert.AreEqual(Errors.SUCCESS, retVal);
        }
        public void TestMethod13_ActivateInactive_Prof3_TestGame02()
        {
            string errMsg   = "";
            string errlabel = "";
            int    retVal   = Errors.SUCCESS;

            // install game
            this.helperInstallTestGame02();

            // instantiate the profile manager
            this.manager = new SteamProfileManager(ProfileManagerTest.GAME02);

            // activate prof3
            retVal = this.manager.activateInactiveProfile(ProfileManagerTest.GAME02_PROF3,
                                                          ProfileManagerTest.GAME_COLOR,
                                                          ProfileManagerTest.GAME_CREATION_DATA);
            Assert.AreEqual(Errors.SUCCESS, retVal);

            // checar prof3
            retVal = this.manager.checkInstallation(ProfileManagerTest.GAME02_PROF3,
                                                    out errMsg,
                                                    out errlabel);
            Assert.AreEqual(Errors.SUCCESS, retVal);
        }
        public void TestMethod04_DesactivateActive_Prof2_TestGame01()
        {
            // checar prof2
            string errMsg   = "";
            string errlabel = "";
            int    retVal   = Errors.SUCCESS;

            // instantiate the profile manager
            this.manager = new SteamProfileManager(ProfileManagerTest.GAME01);

            // desactivate prof2
            retVal = this.manager.desactivateActiveProfile(ProfileManagerTest.GAME01_PROF2,
                                                           out errMsg);

            Assert.AreEqual(Errors.SUCCESS, retVal);

            // checar prof2
            retVal = this.manager.checkInstallation(ProfileManagerTest.GAME01_PROF2,
                                                    out errMsg,
                                                    out errlabel);
            string msg = "errMsg:" + errMsg + ", errlabel:" + errlabel;

            Assert.AreEqual(Errors.SUCCESS, retVal, msg);
        }