Example #1
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();
        }
Example #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();
        }
Example #3
0
 public void Yahoo_GeoPlanet_Admin_ShouldOverrideToString()
 {
     var model = new Admin { Name = "name" };
     model.ShouldNotBeNull();
     model.ToString().ShouldEqual(model.Name);
 }