예제 #1
0
        public void RemoveAtTest()
        {
            var a = new[] { new EClass(1), new EClass(2) };
            var l = new EventedList <EClass>(a);

            l.RemoveAt(0);
            Assert.That(l.Count, Is.EqualTo(1));
        }
예제 #2
0
        public void TestRemoveAt()
        {
            Init();

            m_uut.AddRange(new string[] { "Bob", "Mary", "Sue" });
            m_uut.RemoveAt(1);

            Assert.IsTrue(m_uut[0].Equals("Bob"));
            Assert.IsTrue(m_uut[1].Equals("Sue"));
            Assert.IsTrue(m_responses.Equals("m_uut_AboutToAddItems System.String[] | m_uut_AddedItems System.String[] | m_uut_ContentsChanged | m_uut_AboutToRemoveItem Mary | m_uut_RemovedItem Mary | m_uut_ContentsChanged | "));
            Console.WriteLine(m_responses);
        }