Example #1
0
        public void Should_add_score_on_incorrect_choice()
        {
            var strategy = new AddingScoringStrategy(10, -5);

            strategy.ChangeScore(false);

            strategy.TotalScore.Should().Be(-5);
        }
Example #2
0
        public void Should_reset_score()
        {
            var strategy = new AddingScoringStrategy(10, -5);

            strategy.ChangeScore(false);

            strategy.TotalScore.Should().Be(-5);

            strategy.Reset();

            strategy.TotalScore.Should().Be(0);
        }