Esempio n. 1
0
        public void Yahoo_GeoPlanet_Admin_ShouldOverrideToString()
        {
            var model = new Admin {
                Name = "name"
            };

            model.ShouldNotBeNull();
            model.ToString().ShouldEqual(model.Name);
        }
Esempio n. 2
0
        public void Yahoo_GeoPlanet_Admin_ShouldBePublic()
        {
            var model = new Admin
            {
                Code = "code",
                Name = "name",
                Type = "type",
            };

            model.ShouldNotBeNull();
            model.Code.ShouldNotBeNull();
            model.Name.ShouldNotBeNull();
            model.Type.ShouldNotBeNull();
        }
Esempio n. 3
0
        public void Yahoo_GeoPlanet_Admin_Properties_ShouldBeConvertedToNull_WhenEmptyOrWhiteSpace()
        {
            var model = new Admin
            {
                Name = null,
                Type = string.Empty,
                Code = "   ",
            };

            model.ShouldNotBeNull();
            model.Name.ShouldBeNull();
            model.Type.ShouldBeNull();
            model.Code.ShouldBeNull();
        }
Esempio n. 4
0
        public void Yahoo_GeoPlanet_Admin_ShouldBePublic()
        {
            var model = new Admin
            {
                Code = "code",
                Name = "name",
                Type = "type",
            };

            model.ShouldNotBeNull();
            model.Code.ShouldNotBeNull();
            model.Name.ShouldNotBeNull();
            model.Type.ShouldNotBeNull();
        }
Esempio n. 5
0
        public void Yahoo_GeoPlanet_Admin_Properties_ShouldBeConvertedToNull_WhenEmptyOrWhiteSpace()
        {
            var model = new Admin
            {
                Name = null,
                Type = string.Empty,
                Code = "   ",
            };

            model.ShouldNotBeNull();
            model.Name.ShouldBeNull();
            model.Type.ShouldBeNull();
            model.Code.ShouldBeNull();
        }
Esempio n. 6
0
 public void Yahoo_GeoPlanet_Admin_ShouldOverrideToString()
 {
     var model = new Admin { Name = "name" };
     model.ShouldNotBeNull();
     model.ToString().ShouldEqual(model.Name);
 }