public void DiceLab() { const int iterationCount = 10; IDiceLab lab = new DiceLab(); lab.DiceSystem = new DiceSystem { Hand = new Hand(), Dices = new[] { new Dice(1, 4), new Dice(1, 4) } }; var facts = lab.MakeAnExperiment(iterationCount); Assert.IsNotNull(facts); }
private static void Main() { //Ask for iteration count Console.WriteLine("Dice roll count?"); var input = Console.ReadLine(); var iterationCount = Convert.ToInt32(input); //make an experiment IDiceLab lab = new DiceLab(); var fabric = new DiceSystemFabric(); lab.DiceSystem = fabric.CreateTwoStandartDiceSystem(); var facts = lab.MakeAnExperiment(iterationCount); //Write results Console.WriteLine("-=Statistics=-"); foreach (var fact in facts) { Console.WriteLine(fact); } Console.ReadKey(); }