Explorar el Código

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 hace 9 años
padre
commit
a8ab1e4fbc
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4
    2
      UnitTests/DocXUnitTests.cs

+ 4
- 2
UnitTests/DocXUnitTests.cs Ver fichero

@@ -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();
}

Cargando…
Cancelar
Guardar