Пример #1
0
        void ThoughtsAndCrosses(string roomId, string userId)
        {
            var gameThoughtsAndCrosses = new GameThoughtsAndCrosses(_shuffleHelper);

            gameThoughtsAndCrosses.CalculateTopics();
            gameThoughtsAndCrosses.SetLetter();

            Rooms.RoomsList[roomId].SetThoughtsAndCrosses(gameThoughtsAndCrosses);
        }
        public void WhenLetterSetIsCalledLetterShouldHaveAValue()
        {
            _shuffleHelper
            .ShuffleList(Arg.Any <List <string> >())
            .Returns(new List <string> {
                "B", "A", "D", "C", "XYZ", "W", "V", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "G", "F", "E"
            });

            var thoughtsAndCrosses = new GameThoughtsAndCrosses(_shuffleHelper);

            thoughtsAndCrosses.SetLetter();
            var letter1 = thoughtsAndCrosses.Letter.Letter;

            thoughtsAndCrosses.SetLetter();
            var letter2 = thoughtsAndCrosses.Letter.Letter;

            thoughtsAndCrosses
            .Letter
            .Letter
            .Should()
            .NotBeNullOrWhiteSpace();

            letter1.Should().NotBeEquivalentTo(letter2);
        }