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