Example #1
0
 public void Yahoo_GeoPlanet_Places_ShouldImplementIEnumerableOfPlaces()
 {
     var it = new Places
     {
         Items = new ReadOnlyCollection<Place>(new List<Place>()),
     };
     it.ShouldNotBeNull();
     it.ShouldImplement<IEnumerable<Place>>();
     it.GetEnumerator().ShouldNotBeNull();
     ((IEnumerable) it).GetEnumerator().ShouldNotBeNull();
 }
Example #2
0
 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
 {
     return(Places.GetEnumerator());
 }