예제 #1
0
        public void AddUpdateThrowsArgumentNullException2()
        {
            var headers = new HeaderCollection();
            var ex      = Assert.Throws <ArgumentNullException>(() => headers.AddUpdate((IEnumerable <KeyValuePair <string, string> >)null));

            Assert.Equal("headers", ex.ParamName);
        }
예제 #2
0
 public void AddUpdateThrowsArgumentNullException2()
 {
     var headers = new HeaderCollection();
     var ex = Assert.Throws<ArgumentNullException>(() => headers.AddUpdate((IEnumerable<KeyValuePair<string,string>>)null));
     Assert.Equal("headers", ex.ParamName);
 }