Пример #1
0
        public void Yahoo_GeoPlanet_Admin_ShouldOverrideToString()
        {
            var model = new Admin {
                Name = "name"
            };

            model.ShouldNotBeNull();
            model.ToString().ShouldEqual(model.Name);
        }
Пример #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();
        }
Пример #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();
        }
Пример #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();
        }
Пример #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();
        }
Пример #6
0
 public void Yahoo_GeoPlanet_Admin_ShouldOverrideToString()
 {
     var model = new Admin { Name = "name" };
     model.ShouldNotBeNull();
     model.ToString().ShouldEqual(model.Name);
 }