Ejemplo n.º 1
0
        public void Build_Test()
        {
            var result = StyleConverterFactory.Build(_wpDoc, _config);

            Assert.IsNotNull(result);
            Assert.IsNotNull(result.ParagraphClassFactory);
            Assert.AreEqual(_config.ContainerTag, (result.ParagraphClassFactory as ParagraphClassFactory).Tag);
            Assert.IsNotNull(result.RunClassFactory);
            Assert.IsInstanceOfType(result.RunClassFactory, typeof(RunClassFactory));
        }
Ejemplo n.º 2
0
 public void ResetContainer()
 {
     _styleConverter = StyleConverterFactory.Build(_wpDoc, new StyleConfig());
     _registrator    = _styleConverter.BuildRegistrator();
 }