public void LinkAreaToString() { LinkArea la = new LinkArea(); Assert.AreEqual("{Start=0, Length=0}", la.ToString(), "A1"); la = new LinkArea(0, 0); Assert.AreEqual("{Start=0, Length=0}", la.ToString(), "A2"); la = new LinkArea(4, 75); Assert.AreEqual("{Start=4, Length=75}", la.ToString(), "A3"); }
public void LinkArea_ToString_Invoke_ReturnsExpected() { var area = new LinkArea(1, 2); Assert.Equal("{Start=1, Length=2}", area.ToString()); }