예제 #1
0
        public void RemoveShapeAtIndex_IndexOutOfRange_ThrowsOutOfRangeException()
        {
            // Arrange
            var groupShape = new GroupShape();

            // Act
            // Assert
            Assert.Throws <ArgumentOutOfRangeException>(() => groupShape.RemoveShapeAtIndex(0));
        }
예제 #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);
        }
예제 #3
0
파일: Slide.cs 프로젝트: egoshin-igor/OOD
 public void RemoveShapeAtIndex(int index)
 {
     _data.RemoveShapeAtIndex(index);
 }