Пример #1
0
        public void TestForProcessWorldInformation()
        {
            List <Tuple <int, string> > worldNames = new List <Tuple <int, string> >();
            Tuple <int, string>         x          = new Tuple <int, string>(1, "world1");
            Tuple <int, string>         y          = new Tuple <int, string>(2, "world2");

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

            worldMapImplementor.ProcessWorldInformation(worldNames);
            Assert.AreEqual(2, worldMapImplementor.GetWorldCount());
        }
Пример #2
0
 /**Sets world Count without considering user
  * @params worldNames is a list of tuples that contains the names of the worlds
  * */
 private void ProcessWorldInformation(List <Tuple <int, string> > worldNames)
 {
     worldMapImplementor.ProcessWorldInformation(worldNames);
     this.worldCount = worldMapImplementor.GetWorldCount();
 }