public void GetAllSortedCountries_UYxARG_OK()
        {
            MainSystem system = new MainSystem();

            string[] sortedCountries = system.GetAllSortedCountries();
            Assert.AreEqual("Uruguay", sortedCountries[0]);
            Assert.AreEqual("Argentina", sortedCountries[1]);
        }
Example #2
0
 public MainInterface(ref MainSystem mainSystem)
 {
     system = mainSystem;
     InitializeComponent();
     string[] allCountries = system.GetAllSortedCountries();
     foreach (string country in allCountries)
     {
         countrySelector.Items.Add(country.ToString());
     }
     countrySelector.SelectedIndex = (int)system.Country - 1;
 }
Example #3
0
 public AllReservationInATimePhaseUI(ref MainSystem system)
 {
     InitializeComponent();
     this.system = system;
     string[] allCountries = system.GetAllSortedCountries();
     foreach (string country in allCountries)
     {
         countrySelector.Items.Add(country.ToString());
     }
     countrySelector.Items.Add("none");
     countrySelector.SelectedIndex = 2;
 }