Example #1
0
        public void ClearTest()
        {
            var d = new UrlDataList(null);

            Assert.Throws <NotSupportedException>(
                () =>
            {
                d.Clear();
            },
                "The UrlData collection is read-only."
                );
        }
 public void ClearTest()
 {
     var d = new UrlDataList(null);
     Assert.Throws<NotSupportedException>(() => { d.Clear(); }, "The UrlData collection is read-only.");
 }