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

            l.Add(a[0]);
            Assert.That(l.LastIndexOf(a[0]), Is.EqualTo(2));
            Assert.That(l.LastIndexOf(a[0], 1, 2), Is.EqualTo(0));
        }