|
@@ -10,7 +10,7 @@ namespace QuestPDF.UnitTests
|
|
|
public class TextStyleTests
|
|
public class TextStyleTests
|
|
|
{
|
|
{
|
|
|
[Test]
|
|
[Test]
|
|
|
- public void Font()
|
|
|
|
|
|
|
+ public void ApplyInheritedAndGlobalStyle()
|
|
|
{
|
|
{
|
|
|
// arrange
|
|
// arrange
|
|
|
var defaultTextStyle = TextStyle
|
|
var defaultTextStyle = TextStyle
|
|
@@ -26,6 +26,7 @@ namespace QuestPDF.UnitTests
|
|
|
|
|
|
|
|
var spanTextStyle = TextStyle
|
|
var spanTextStyle = TextStyle
|
|
|
.Default
|
|
.Default
|
|
|
|
|
+ .FontFamily("Times New Roman")
|
|
|
.Bold()
|
|
.Bold()
|
|
|
.Strikethrough()
|
|
.Strikethrough()
|
|
|
.BackgroundColor(Colors.Red.Lighten2);
|
|
.BackgroundColor(Colors.Red.Lighten2);
|
|
@@ -37,7 +38,7 @@ namespace QuestPDF.UnitTests
|
|
|
var expectedStyle = TextStyle.LibraryDefault with
|
|
var expectedStyle = TextStyle.LibraryDefault with
|
|
|
{
|
|
{
|
|
|
Size = 20,
|
|
Size = 20,
|
|
|
- FontFamily = "Arial",
|
|
|
|
|
|
|
+ FontFamily = "Times New Roman",
|
|
|
FontWeight = FontWeight.Bold,
|
|
FontWeight = FontWeight.Bold,
|
|
|
BackgroundColor = Colors.Red.Lighten2,
|
|
BackgroundColor = Colors.Red.Lighten2,
|
|
|
HasStrikethrough = true,
|
|
HasStrikethrough = true,
|