public void MakeString_EmptyTextValidWS_ReturnsCorrectString() { var tsf = new TsStrFactory(); ITsString tss = tsf.MakeString(string.Empty, 1); Assert.That(tss.Text, Is.Null); Assert.That(tss.get_WritingSystem(0), Is.EqualTo(1)); }
public void MakeString_ZeroWS_Throws() { var tsf = new TsStrFactory(); Assert.That(() => tsf.MakeString(string.Empty, 0), Throws.InstanceOf <ArgumentOutOfRangeException>()); }