public void CanAddContainerToEmptyRow()
        {
            // Arrange
            row = new Containervervoer_Methods.Models.Row(3);

            // Act
            bool actualValue = row.CanAddContainer(MockContainers.testContainers[0]);

            // Assert
            Assert.AreEqual(trueValue, actualValue);
        }
Ejemplo n.º 2
0
        public void DoAllRowsHaveStacksTest1()
        {
            rowTest = MockRows.testRows.Last();

            containerListTest.Add(MockContainers.testContainers[0]);
            containerListTest.Add(MockContainers.testContainers[9]);
            containerListTest.Add(MockContainers.testContainers[10]);
            containerListTest.Add(MockContainers.testContainers[11]);

            foreach (var container in containerListTest)
            {
                rowTest.CanAddContainer(container);
            }

            Assert.AreEqual(2, rowTest.stackList.Count);
        }
Ejemplo n.º 3
0
        public void DoAllRowsHaveStacksTest3()
        {
            rowTest = MockRows.testRows[10];

            containerListTest.Add(MockContainers.testContainers[6]);
            containerListTest.Add(MockContainers.testContainers[7]);
            containerListTest.Add(MockContainers.testContainers[8]);
            containerListTest.Add(MockContainers.testContainers[6]);
            containerListTest.Add(MockContainers.testContainers[7]);

            foreach (var container in containerListTest)
            {
                rowTest.CanAddContainer(container);
            }

            Assert.AreEqual(5, rowTest.stackList.Count);
        }