public void get_Properties_TwoRuns_ReturnsCorrectProperties() { TsString tss = CreateTwoRunString(); ITsTextProps tps = tss.get_Properties(1); int var; Assert.That(tps.GetIntPropValues((int)FwTextPropType.ktptWs, out var), Is.EqualTo(SpanishWS)); }
public void get_Properties_Empty_ReturnsCorrectProperties() { TsString tss = CreateEmptyString(); ITsTextProps tps = tss.get_Properties(0); int var; Assert.That(tps.GetIntPropValues((int)FwTextPropType.ktptWs, out var), Is.EqualTo(EnglishWS)); }
public void get_PropertiesAt_IchOutOfRange_Throws() { TsString tss = CreateTwoRunString(); Assert.That(() => tss.get_Properties(-1), Throws.InstanceOf <ArgumentOutOfRangeException>()); }