コード例 #1
0
        public void GenerateSkillsTest()
        {
            var skills = factory.GenerateSkills();

            //Every Employee needs the All Purpose Skill
            Assert.True(skills.Exists((skill) => skill.GetName().Equals("All Purpose")));
            //No Skill Duplicates
            var hash = new HashSet <String>();

            Assert.IsFalse(skills.Any(skill => !hash.Add(skill.GetName())));
        }