Create new namespace zaaReloaded2.Formatter, move settings there.

This commit is contained in:
Daniel Kraus
2015-07-16 01:49:17 +02:00
parent 26766dbf81
commit e4e7f80ed2
8 changed files with 86 additions and 64 deletions

View File

@ -23,6 +23,7 @@ using NUnit.Framework;
using f = zaaReloaded2.Formatter;
using zaaReloaded2.LabModel;
using zaaReloaded2.Importer.ZaaImporter;
using zaaReloaded2.Controller.Elements;
using Microsoft.Office.Interop.Word;
namespace Tests.Formatter
@ -37,7 +38,7 @@ namespace Tests.Formatter
ZaaImporter importer = TestHelpers.ZaaImporterFromResource();
f.Formatter formatter = new f.Formatter(document);
formatter.Laboratory = importer.Laboratory;
formatter.Elements.Add(new f.Elements.Items("Klinische Chemie: Na, K, Cl"));
formatter.Settings.Elements.Add(new Items("Klinische Chemie: Na, K, Cl"));
formatter.Run();
Assert.AreEqual("Klinische Chemie: Na 144 mM, K 4,3 mM\r", document.Range().Text);
((_Document)document).Close(WdSaveOptions.wdDoNotSaveChanges);