Esempio n. 1
0
        public void GeoNames_AlternateName_ShouldOverrideToString()
        {
            var model = new AlternateName
            {
                Name     = "name",
                Language = "lang",
            };

            model.ShouldNotBeNull();
            model.ToString().ShouldEqual(string.Format("{0}:{1}", model.Language, model.Name));
        }
        public void GeoNames_AlternateName_ShouldOverrideToString()
        {
            var model = new AlternateName
            {
                Name = "name",
                Language = "lang",
            };

            model.ShouldNotBeNull();
            model.ToString().ShouldEqual(string.Format("{0}:{1}", model.Language, model.Name));
        }
Esempio n. 3
0
        public void GeoNames_AlternateName_ShouldBePublic()
        {
            var model = new AlternateName
            {
                Name     = "name",
                Language = "lang",
            };

            model.ShouldNotBeNull();
            model.Name.ShouldNotBeNull();
            model.Language.ShouldNotBeNull();
        }
        public void GeoNames_AlternateName_ShouldBePublic()
        {
            var model = new AlternateName
            {
                Name = "name",
                Language = "lang",
            };

            model.ShouldNotBeNull();
            model.Name.ShouldNotBeNull();
            model.Language.ShouldNotBeNull();
        }