示例#1
0
        public int GivenExecuteFigureByIdWhenExecuteOneFigureThenOutputListLessByOne(List <Figure> actualFigure, int figureId)
        {
            //Arrange
            BoxForFigures boxForFigures = InitialBoxForFigures(actualFigure);

            //Act
            boxForFigures.ExecuteFigureById(figureId);

            //Assert
            return(boxForFigures.FigureList.Count);
        }
示例#2
0
        public Figure GivenExecuteFigureByIdWhenByIdThenOutIsFigure(Figure[] actualFigure, int figureId)
        {
            //Arrange
            BoxForFigures boxForFigures = new BoxForFigures();

            //Act
            if (actualFigure != null)
            {
                foreach (Figure item in actualFigure)
                {
                    boxForFigures.AddFigureToBox(item);
                }
            }

            //Assert
            return(boxForFigures.ExecuteFigureById(figureId));
        }