Exemple #1
0
        public void Yahoo_GeoPlanet_PlaceType_ShouldOverrideToString()
        {
            var model = new PlaceType {
                Name = "name"
            };

            model.ShouldNotBeNull();
            model.ToString().ShouldEqual(model.Name);
        }
Exemple #2
0
        public void Yahoo_GeoPlanet_PlaceType_ShouldBePublic()
        {
            var it = new PlaceType
            {
                Language    = "language",
                Uri         = new Uri("http://ngeo.codeplex.com"),
                Name        = "name",
                Description = "description",
                Code        = 6,
            };

            it.ShouldNotBeNull();
            it.Language.ShouldNotBeNull();
            it.Uri.ShouldNotBeNull();
            it.Name.ShouldNotBeNull();
            it.Description.ShouldNotBeNull();
            it.Code.ShouldEqual(6);
        }
Exemple #3
0
        public void Yahoo_GeoPlanet_PlaceType_ShouldBePublic()
        {
            var it = new PlaceType
            {
                Language = "language",
                Uri = new Uri("http://ngeo.codeplex.com"),
                Name = "name",
                Description = "description",
                Code = 6,
            };

            it.ShouldNotBeNull();
            it.Language.ShouldNotBeNull();
            it.Uri.ShouldNotBeNull();
            it.Name.ShouldNotBeNull();
            it.Description.ShouldNotBeNull();
            it.Code.ShouldEqual(6);
        }
Exemple #4
0
 public void Yahoo_GeoPlanet_PlaceType_ShouldOverrideToString()
 {
     var model = new PlaceType { Name = "name" };
     model.ShouldNotBeNull();
     model.ToString().ShouldEqual(model.Name);
 }