예제 #1
0
        public void Clear()
        {
            // Setup
            var sequence = InitializeSequence();
            var set      = new TestSet <SimpleType>(sequence);

            // Execute
            set.Clear();

            // Assert
            Assert.IsFalse(set.Any());
            Assert.AreEqual(0, set.Count);
        }
예제 #2
0
        public void Clear()
        {
            // Setup
            var sequence = InitializeSequence();
            var set = new TestSet<TestEntity>(sequence);

            // Execute
            set.Clear();

            // Assert
            Assert.IsFalse(set.Any());
            Assert.AreEqual(0, set.Count);
        }