Exemplo n.º 1
0
        public void ContainsTest()
        {
            var people = new ConcurrentHashSet <PersonProper>(2, 10);

            people.AddRange(RandomData.GeneratePersonCollection <PersonProper>(10));
            var person = people.Last();

            var result = people.Contains(person);

            Assert.IsTrue(result);

            Assert.IsFalse(people.Contains(RandomData.GeneratePerson <PersonProper>()));
        }