public void RemoveShapeAtIndex_IndexOutOfRange_ThrowsOutOfRangeException() { // Arrange var groupShape = new GroupShape(); // Act // Assert Assert.Throws <ArgumentOutOfRangeException>(() => groupShape.RemoveShapeAtIndex(0)); }
public void RemoveShapeAtIndex_ShapeCountEqualsOne_ShapesCountEqualsZero() { // Arrange var groupShape = new GroupShape(); groupShape.InsertShape(_shapeMock.Object, 0); // Act groupShape.RemoveShapeAtIndex(0); // Assert Assert.Equal(0, groupShape.ShapesCount); }
public void RemoveShapeAtIndex(int index) { _data.RemoveShapeAtIndex(index); }