public int GivenExecuteFigureByIdWhenExecuteOneFigureThenOutputListLessByOne(List <Figure> actualFigure, int figureId) { //Arrange BoxForFigures boxForFigures = InitialBoxForFigures(actualFigure); //Act boxForFigures.ExecuteFigureById(figureId); //Assert return(boxForFigures.FigureList.Count); }
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)); }