static void Main(string[] args) { var games = new IGambling[] { new Lottery("Lotto", 45, 45, 6, 1), new Lottery("Euromillions", 50, 12, 5, 2), new Lottery("Joker", 90, 0, 5, 0), new Scratch_card("Cash"), new Scratch_card("Schatztruhe") }; foreach (var g in games) { g.get_instructions(); g.print_list(g.generate_rand(), g.Name); } var sc = new Scratch_card("Lebenlang"); sc.play(); sc.play(); sc.play(); Json.Serialization(games); }
public void is_different_balance_after_game() { var sc = new Scratch_card("Name"); decimal init_balance = sc.balance; sc.play(); decimal new_balance = sc.balance; Assert.AreNotEqual(init_balance, new_balance); }