コード例 #1
0
        public void Ctor_NullDesignersIList_Success()
        {
            var collection = new DesignerCollection((IList)null);

            Assert.Throws <NullReferenceException>(() => collection.Count);
            Assert.Throws <NullReferenceException>(() => collection.GetEnumerator());
            Assert.Throws <NullReferenceException>(() => collection[0]);
        }
コード例 #2
0
 public IEnumerator GetEnumerator()
 {
     return(new DesignSurfaceEnumerator(_designers.GetEnumerator()));
 }