Exemplo n.º 1
0
        public void TestTrackableCollection_Last_Empty()
        {
            var a    = new Simple("a");
            var b    = new Simple("b");
            var c    = new Simple("c");
            var coll = new TrackableCollection <Simple>()
            {
                a, b, c, b, c, b, b
            };
            var last = coll.Last();

            Assert.AreEqual(b, last);
            coll.Clear();
            coll.Last();
        }