Beispiel #1
0
        public void CtorShouldSetScoreTo5WhenScoreManagerCalculateReturns5()
        {
            A.CallTo(() => scoreManager.Calculate(A <IEnumerable <IDice> > .Ignored)).Returns(5);
            var game = CreateGame();

            Assert.AreEqual(5, game.Score);
        }
Beispiel #2
0
 private void UpdateScore()
 {
     Score = scoreManager.Calculate(frozenDices);
 }