Exemplo n.º 1
0
        public void TestTotalPointsFor0WrongAnswers()
        {
            //Arrange
            Dictionary <User, int> points = new Dictionary <User, int>();

            messages.Add(CreateChatMessage(userId1, startTime.AddSeconds(3), "Hest"));

            List <int> expected = new List <int>();

            expected.Add(50);
            expected.Add(0);
            expected.Add(0);

            //Act
            points = _service.PointsForWrongAnswers(turn, messages, users);
            List <int> usersPoints = points.Select(v => v.Value).ToList();

            //Assert
            Assert.That(usersPoints, Is.EqualTo(expected));
        }