public void ColorType_ReturnsSchemeColorType_WhenFontColorIsSetAsRGB() { // Arrange IAutoShape placeholder = (IAutoShape)_fixture.Pre014.Slides[5].Shapes.First(sp => sp.Id == 52); IColorFormat colorFormat = placeholder.TextBox.Paragraphs[0].Portions[0].Font.ColorFormat; // Act SCColorType colorType = colorFormat.ColorType; // Assert colorType.Should().Be(SCColorType.RGB); }
public void ColorType_ReturnsSchemeColorType_WhenFontColorIsTakenFromThemeScheme() { // Arrange IAutoShape nonPhAutoShape = (IAutoShape)_fixture.Pre020.Slides[0].Shapes.First(sp => sp.Id == 2); IColorFormat colorFormat = nonPhAutoShape.TextBox.Paragraphs[0].Portions[0].Font.ColorFormat; // Act SCColorType colorType = colorFormat.ColorType; // Assert colorType.Should().Be(SCColorType.Scheme); }