public void GetWorstSkill_Flow_Skill() { var skill = new Skill { Id = 1 }; var user = new User { UserSkills = new List <UserSkill> { new UserSkill { Ratings = new List <Rating> { new Rating { Mark = 8.0 } }, Skill = skill } } }; var result = UserExtension.GetWorstSkill(user); Assert.AreEqual(skill, result); }