Exemple #1
0
        public void AutoShapeFillType_GetterReturnsFillTypeByWhichTheAutoShapeIsFilled()
        {
            // Arrange
            IAutoShape autoShape1 = (IAutoShape)_fixture.Pre009.Slides[2].Shapes.First(sp => sp.Id == 4);
            IAutoShape autoShape2 = (IAutoShape)_fixture.Pre009.Slides[1].Shapes.First(sp => sp.Id == 2);

            // Act
            FillType shapeFillTypeCase1 = autoShape1.Fill.Type;
            FillType shapeFillTypeCase2 = autoShape2.Fill.Type;

            // Assert
            shapeFillTypeCase1.Should().Be(FillType.Picture);
            shapeFillTypeCase2.Should().Be(FillType.Solid);
        }