예제 #1
0
        public void IsEmpty_ReturnsTrue()
        {
            var list    = new FixedList <int>();
            var isEmpty = list.IsEmpty();

            Assert.IsTrue(isEmpty == true);
            Assert.IsTrue(list.CurrentSize == 0);
        }
예제 #2
0
        public void IsEmpty_ReturnsFalse()
        {
            var list = new FixedList <int>();

            list.Insert(10);
            var isEmpty = list.IsEmpty();

            Assert.IsTrue(isEmpty == false);
            Assert.IsTrue(list.CurrentSize == 1);
        }
예제 #3
0
        public void UpdateMRUMenu(FixedList MRUList)
        {
            //No need to go further if no menu entry to load!
            if (MRUList == null || MRUList.IsEmpty())
            {
                return;
            }

            recentFilesMenuItem.DropDownItems.Clear();
            for (int i = 0; i < MRUList._innerList.Count; i++)
            {
                recentFilesMenuItem.DropDownItems.Add(MRUList[i]);
            }
        }