示例#1
0
        public void CheckCount()
        {
            var extendedListBoxContol = new MockExtendedListBox();

            Assert.AreEqual(extendedListBoxContol.Items.Count, 2);

            extendedListBoxContol.GetChildren(2, 4);
            Assert.AreEqual(extendedListBoxContol.Items.Count, 6);

            extendedListBoxContol.GetChildren(3, 4);
            Assert.AreEqual(extendedListBoxContol.Items.Count, 7);

            extendedListBoxContol.GetChildren(6, 4);
            Assert.AreEqual(extendedListBoxContol.Items.Count, 10);
        }
        public void CheckCount()
        {
            var extendedListBoxContol = new MockExtendedListBox();

            Assert.AreEqual(extendedListBoxContol.Items.Count, 2);

            extendedListBoxContol.GetChildren(2, 4);
            Assert.AreEqual(extendedListBoxContol.Items.Count, 6);

            extendedListBoxContol.GetChildren(3, 4);
            Assert.AreEqual(extendedListBoxContol.Items.Count, 7);

            extendedListBoxContol.GetChildren(6, 4);
            Assert.AreEqual(extendedListBoxContol.Items.Count, 10);
        }