Exemplo n.º 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]);
        }
Exemplo n.º 2
0
 public IEnumerator GetEnumerator()
 {
     return(new DesignSurfaceEnumerator(_designers.GetEnumerator()));
 }