Exemplo n.º 1
0
        public void GetMaxColumnHeight_EmptyInputReturnsZeroHeight()
        {
            List <List <int?> > input = new List <List <int?> >();

            int output = PinningModelBase.GetMaxColumnHeight(input);

            Assert.AreEqual(output, 0);
        }
Exemplo n.º 2
0
        public void GetMaxColumnHeight_InputListOfEmptyListsReturnsZeroHeight()
        {
            List <List <int?> > input = new List <List <int?> >
            {
                new List <int?>(),
                new List <int?>(),
                new List <int?>()
            };

            int output = PinningModelBase.GetMaxColumnHeight(input);

            Assert.AreEqual(output, 0);
        }
Exemplo n.º 3
0
        public void GetMaxColumnHeight_ValidDataReturnsTallestColumnHeight()
        {
            List <List <int?> > input = new List <List <int?> >
            {
                new List <int?> {
                    1, 2, 3, 4
                },
                new List <int?> {
                    1, 2, 3
                },
                new List <int?> {
                    1, 2, 3, 4, 5
                },
                new List <int?> {
                    1, 2
                }
            };

            int output = PinningModelBase.GetMaxColumnHeight(input);

            Assert.AreEqual(output, 5);
        }