Parcourir la source

Fix for failing FontFamily name test

On mono the actual name of a FontFamily may be different from the alias used to create the FontFamily.
master
Jan Bernlöhr il y a 9 ans
Parent
révision
a8ab1e4fbc
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4
    2
      UnitTests/DocXUnitTests.cs

+ 4
- 2
UnitTests/DocXUnitTests.cs Voir le fichier

@@ -2074,9 +2074,11 @@ namespace UnitTests
{
Paragraph p = document.InsertParagraph();
p.Append("Hello World").Font(new FontFamily("Symbol"));
var fontFamily = new FontFamily("Symbol");
Assert.AreEqual(p.MagicText[0].formatting.FontFamily.Name, "Symbol");
p.Append("Hello World").Font(fontFamily);
Assert.AreEqual(p.MagicText[0].formatting.FontFamily.Name, fontFamily.Name);
document.Save();
}

Chargement…
Annuler
Enregistrer