Пример #1
0
        public void GivenAValidGo_ThenMessageComeFromGoMessageMaker()
        {
            GivenAValidGoWhichHasCreatedSomeWords();
            var result = goHandler.Go(game);

            goMessageMaker.GetGoMessage("NAME", Arg.Any <IEnumerable <GoWord> >(), Arg.Any <int>());
        }
Пример #2
0
 private GoResult SuccessResult()
 {
     return(new GoResult()
     {
         IsValid = true,
         Message = goMessageMaker.GetGoMessage(game.CurrentPlayer().Name, goWords, goScore),
         Game = game,
         GoScore = goScore
     });
 }