Example #1
0
        public void TestForProcessUserProgressLogicWhenWorldCountIsLesserThanProgress()
        {
            List <Tuple <int, int, string> > worldStageProgress = new List <Tuple <int, int, string> >();
            Tuple <int, int, string>         x = new Tuple <int, int, string>(1, 1, "80");
            Tuple <int, int, string>         y = new Tuple <int, int, string>(2, 1, "100");

            worldStageProgress.Add(x);
            worldStageProgress.Add(y);
            WorldMapImplementation worldMapImplementor = new WorldMapImplementation();

            worldMapImplementor.SetWorldCount(1);
            worldMapImplementor.ProcessUserProgressLogic(worldStageProgress);
            Assert.AreEqual(1, worldMapImplementor.GetWorldProgress());
        }
Example #2
0
 /**Processes user progress information in order to determine which world can be played
  *@params worldStageProgress is a list of tuples that contains the world,the stages of the world, and the user progress in that stage
  * */
 private void ProcessUserProgessLogic(List <Tuple <int, int, string> > worldStageProgress)
 {
     worldMapImplementor.ProcessUserProgressLogic(worldStageProgress);
     this.worldProgress = worldMapImplementor.GetWorldProgress();
 }