Пример #1
0
        public void ContentLength()
        {
            ConcreteWebRequest wr = new ConcreteWebRequest();

            Assert.Throws <NotImplementedException> (delegate {
                Assert.AreEqual(-1, wr.ContentLength, "default");
            }, "get");
            Assert.Throws <NotImplementedException> (delegate {
                wr.ContentLength = 0;
            }, "set");
        }
Пример #2
0
		public void ContentLength ()
		{
			ConcreteWebRequest wr = new ConcreteWebRequest ();
			Assert.Throws<NotImplementedException> (delegate {
				Assert.AreEqual (-1, wr.ContentLength, "default");
			}, "get");
			Assert.Throws<NotImplementedException> (delegate {
				wr.ContentLength = 0;
			}, "set");
		}