Exemplo n.º 1
0
        public void StackOfBoxes1CompleteTest2SingleBox()
        {
            // ReSharper disable once UseObjectOrCollectionInitializer
            var stack = new List <Box>();

            stack.Add(new Box(2, 2, 2));
            Assert.AreEqual(2, StackOfBoxes1ComputeAndCountComplete.GetMaxHeight(stack));
        }
Exemplo n.º 2
0
 public void StackOfBoxes1CompleteTest5NullList()
 {
     try
     {
         StackOfBoxes1ComputeAndCountComplete.GetMaxHeight(null);
     }
     catch (ArgumentException)
     {
         Assert.IsTrue(true);
         return;
     }
     Assert.Fail();
 }
Exemplo n.º 3
0
        public void StackOfBoxes1CompleteTest1NoBoxes()
        {
            var stack = new List <Box>();

            Assert.AreEqual(0, StackOfBoxes1ComputeAndCountComplete.GetMaxHeight(stack));
        }