Exemple #1
0
        public void AddEntity()
        {
            // Setup
            var item = InitializeSequence()[0];
            var set  = new TestSet <TestEntity>();

            // Execute
            set.Add(item);

            // Assert
            Assert.AreEqual(1, set.Count);
            Assert.AreSame(item, set.First());
        }
Exemple #2
0
        public void AddEntity()
        {
            // Setup
            var item = InitializeSequence()[0];
            var set = new TestSet<TestEntity>();

            // Execute
            set.Add(item);

            // Assert
            Assert.AreEqual(1, set.Count);
            Assert.AreSame(item, set.First());
        }