Exemplo n.º 1
0
        public void RemoveShapeAtIndex_IndexOutOfRange_ThrowsOutOfRangeException()
        {
            // Arrange
            var groupShape = new GroupShape();

            // Act
            // Assert
            Assert.Throws <ArgumentOutOfRangeException>(() => groupShape.RemoveShapeAtIndex(0));
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
 public void RemoveShapeAtIndex(int index)
 {
     _data.RemoveShapeAtIndex(index);
 }