public void InsertAtTest() { var d = new UrlDataList("x/y/z"); Assert.Throws <NotSupportedException>( () => { d.Insert(1, "a"); }, "The UrlData collection is read-only." ); }
public void InsertAtTest() { var d = new UrlDataList("x/y/z"); Assert.Throws<NotSupportedException>(() => { d.Insert(1, "a"); }, "The UrlData collection is read-only."); }