Ejemplo n.º 1
0
        public void Replace_OneRunBldrEmptyTextEmptyRange_DoNotUpdateProperties()
        {
            TsStrBldr tsb = CreateOneRunBldr();

            tsb.Replace(0, 0, string.Empty, new TsTextProps(FrenchWS));
            Assert.That(tsb.Text, Is.EqualTo(EnglishFont1Text));
            Assert.That(tsb.RunCount, Is.EqualTo(1));
            int var;

            Assert.That(tsb.get_PropertiesAt(0).GetIntPropValues((int)FwTextPropType.ktptWs, out var), Is.EqualTo(EnglishWS));
        }