public void Add_City_Name_To_Container() { City city = CityManager.GetCity(); ServerContainer container = ContainerManeger.Prepare(city); Assert.AreEqual(city.Name, container.CityName); }
public void Prepare_Container_For_Random_City() { var city = CityManager.GetCity(); ServerContainer container = ContainerManeger.Prepare(city); Assert.AreEqual(false, container.IsLoaded); }
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); }
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); }
public void Control_City_Status() { City city = CityManager.GetCity(); Assert.AreNotEqual(1, city.Status); }
public void Get_Random_City_From_Generic_List() { City city = CityManager.GetCity(); Assert.AreNotEqual(String.Empty, city.Name); }