예제 #1
0
        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");
        }