static void Main(string[] args) { var deck = new Deck(new GuidShuffler(), new ANormalDeck()); deck.Shuffle(); var hand = deck.TakeOneHand(); var check = JudgeRoslin.Check(hand); Console.WriteLine(check); //var consoleCardPrinter = new ConsoleCardPrinter(); //var stopwatch = new Stopwatch(); //stopwatch.Start(); //Console.WriteLine("SLOW..."); //var numberOfHands = Slow(consoleCardPrinter); //stopwatch.Stop(); //Console.WriteLine("DONE in {0} - {1}", stopwatch.Elapsed, numberOfHands); //stopwatch.Reset(); //stopwatch.Start(); //Console.WriteLine("FAST..."); //numberOfHands = Fast(consoleCardPrinter); //stopwatch.Stop(); //Console.WriteLine("DONE in {0} - {1}", stopwatch.Elapsed, numberOfHands); //Console.ReadLine(); }
public void Should_return_first_satisfied_rule_name() { var judgeRoslin = new JudgeRoslin(new List <IHandRule> { new FakeRule(false, "false"), new FakeRule(true, "TrueRule") }); var ruleName = judgeRoslin.Check(new Hand()); ruleName.Should().Be("TrueRule"); }