Пример #1
0
        public void EnumerateColumns_SetLastEntry_ReturnsExpected()
        {
            var testObject = new Object();
            var table = new Table<Object>();

            table[4, 4] = testObject;

            var enumerator = table.EnumerateColumns(4);

            Assert.AreEqual(4, enumerator.Count(o => o == null));
            Assert.AreEqual(testObject, enumerator.Last());
        }
Пример #2
0
        public void EnumerateColumns_ArgumentOutOfBound_CountZero()
        {
            var testObject = new Object();
            var table = new Table<Object>();

            table[4, 4] = testObject;

            var enumerator = table.EnumerateColumns(5);

            Assert.AreEqual(0, enumerator.Count());
        }
Пример #3
0
        public void EnumerateColumns_OnEmptyTable_CountZero()
        {
            var table = new Table<Object>();

            var enumerator = table.EnumerateColumns(0);

            Assert.AreEqual(0, enumerator.Count());
        }