Пример #1
0
        public void TotalSkillScore_Flow_Double()
        {
            var rating = 7.0;

            var user = new User
            {
                UserSkills = new List <UserSkill>
                {
                    new UserSkill
                    {
                        Ratings = new List <Rating>
                        {
                            new Rating {
                                Mark = rating
                            }
                        },
                    }
                }
            };

            var result = UserExtension.TotalSkillScore(user);

            Assert.AreEqual(rating, result);
        }