浏览代码

Merge pull request #53 from janbernloehr/nunit

Fix for failing FontFamily name test
master
PrzemyslawKlys 9 年前
父节点
当前提交
727ba674f3
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      UnitTests/DocXUnitTests.cs

+ 4
- 2
UnitTests/DocXUnitTests.cs 查看文件

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

正在加载...
取消
保存