public void Append_EmptyBldrPropSetNonEmptyString_AppendsText() { var tisb = new TsIncStrBldr(); tisb.SetIntPropValues((int)FwTextPropType.ktptWs, (int)FwTextPropVar.ktpvDefault, 1); tisb.Append("text"); Assert.That(tisb.Text, Is.EqualTo("text")); Assert.That(tisb.Runs.Count, Is.EqualTo(1)); Assert.That(GetWS(tisb, 0), Is.EqualTo(EnglishWS)); }
public void Append_OneRunBldrPropSetNonEmptyString_AppendsText() { TsIncStrBldr tisb = CreateOneRunBldr(); tisb.SetIntPropValues((int)FwTextPropType.ktptWs, (int)FwTextPropVar.ktpvDefault, SpanishWS); tisb.Append("text"); Assert.That(tisb.Text, Is.EqualTo(EnglishText + "text")); Assert.That(tisb.Runs.Count, Is.EqualTo(2)); Assert.That(GetWS(tisb, 0), Is.EqualTo(EnglishWS)); Assert.That(GetWS(tisb, 1), Is.EqualTo(SpanishWS)); Assert.That(tisb.Runs[0].IchLim, Is.EqualTo(EnglishText.Length)); Assert.That(tisb.Runs[1].IchLim, Is.EqualTo(tisb.Text.Length)); }