소스 검색

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

Loading…
취소
저장