Exemplo n.º 1
0
        public void Yahoo_GeoPlanet_PlaceTypes_ShouldBePublic()
        {
            var it = new PlaceTypes
            {
                Items = new ReadOnlyCollection <PlaceType>(new List <PlaceType>()),
            };

            it.ShouldNotBeNull();
            it.Items.ShouldNotBeNull();
        }
Exemplo n.º 2
0
        public void Yahoo_GeoPlanet_PlaceTypes_ShouldImplementIEnumerableOfPlaceTypes()
        {
            var it = new PlaceTypes
            {
                Items = new ReadOnlyCollection <PlaceType>(new List <PlaceType>()),
            };

            it.ShouldNotBeNull();
            it.ShouldImplement <IEnumerable <PlaceType> >();
            it.GetEnumerator().ShouldNotBeNull();
            ((IEnumerable)it).GetEnumerator().ShouldNotBeNull();
        }