public void clone() { var game = new Game(); game.newTemplate(Style.Combo); game.Template.quickPlayslip(); game.fileTemplate(); var clone = game.Clone(); Assert.AreNotSame(game, clone); }
public void persist_Game() { var game = new Game(); game.newTemplate(Common.randomStyle()); game.Template.quickPlayslip(); game.fileTemplate(); context.Games.Add(game); context.SaveChanges(); Assert.That(0 != game.Id); Assert.NotNull(context.Games.Find(game.Id)); }
public void eval_Game() { var g = new Game(); for(int i = 0; i < 10; i++) { g.newTemplate(Style.Combo); g.Template.quickPlayslip(); g.fileTemplate(); } var d = Builder.draw(); Console.WriteLine(d.LString); foreach(GameType gt in Enum.GetValues(typeof(GameType))) { if(gt == GameType.Undefined) continue; foreach(PrizeCategory pc in Enum.GetValues(typeof(PrizeCategory))) { if(pc == PrizeCategory.Undefined) continue; Console.WriteLine("{0}:{1}:{2}", gt, pc, g.eval(d, gt, pc)); } } }