public void ToStringShouldGiveName(Type type, string name) { Entree entree = (Entree)Activator.CreateInstance(type); CretaceousCombo combo = new CretaceousCombo(entree); Assert.Equal(name, combo.ToString()); }
public void ComboDescriptionShouldGiveName(Type type, Size size, string name) { Entree entree = (Entree)Activator.CreateInstance(type); CretaceousCombo combo = new CretaceousCombo(entree); combo.Size = size; Assert.Equal(name, combo.ToString()); }
/// <summary> /// Prepares the EntreeSelection user interface. /// </summary> private void SetUpCustomizeComboSelection() { SetSizeButtonValues(); EntreeButton.Background = UserInterfaceOptions.BaseColor; SideButton.Background = UserInterfaceOptions.BaseColor; DrinkButton.Background = UserInterfaceOptions.BaseColor; ComboTextBlock.Text = combo.ToString(); EntreeChoice.Text = combo.Entree.ToString(); DrinkChoice.Text = combo.Drink.ToString(); SideChoice.Text = combo.Side.ToString(); }