Ejemplo n.º 1
0
        public void Add_City_Name_To_Container()
        {
            City            city      = CityManager.GetCity();
            ServerContainer container = ContainerManeger.Prepare(city);

            Assert.AreEqual(city.Name, container.CityName);
        }
Ejemplo n.º 2
0
        public void Prepare_Container_For_Random_City()
        {
            var             city      = CityManager.GetCity();
            ServerContainer container = ContainerManeger.Prepare(city);

            Assert.AreEqual(false, container.IsLoaded);
        }
Ejemplo n.º 3
0
        public void Change_Container_IsLoaded()
        {
            City            city      = CityManager.GetCity();
            ServerContainer container = ContainerManeger.Prepare(city);

            Assert.AreEqual(false, container.IsLoaded);
            ContainerManeger.ChangeContainerIsLoaded(container);
            Assert.AreEqual(true, container.IsLoaded);
        }
Ejemplo n.º 4
0
        public void Change_City_Status()
        {
            City city = CityManager.GetCity();

            city.StatusControlEvent += City_StatusControlEvent;
            Assert.AreEqual(CityStatus.Passive, city.Status);
            city.Status = CityStatus.Active;
            Assert.AreEqual(CityStatus.Active, city.Status);
        }
Ejemplo n.º 5
0
        public void Control_City_Status()
        {
            City city = CityManager.GetCity();

            Assert.AreNotEqual(1, city.Status);
        }
Ejemplo n.º 6
0
        public void Get_Random_City_From_Generic_List()
        {
            City city = CityManager.GetCity();

            Assert.AreNotEqual(String.Empty, city.Name);
        }