示例#1
0
        public void Add_City_Name_To_Container()
        {
            City            city      = CityManager.GetCity();
            ServerContainer container = ContainerManeger.Prepare(city);

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

            Assert.AreEqual(false, container.IsLoaded);
        }
示例#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);
        }
示例#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);
        }
示例#5
0
        public void Control_City_Status()
        {
            City city = CityManager.GetCity();

            Assert.AreNotEqual(1, city.Status);
        }
示例#6
0
        public void Get_Random_City_From_Generic_List()
        {
            City city = CityManager.GetCity();

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