ToString() public method

public ToString ( ) : string
return string
Ejemplo n.º 1
0
        public void GeoNames_TimeZone_ShouldOverrideToString()
        {
            var model = new TimeZoneExtended
            {
                Id = "id",
            };

            model.ShouldNotBeNull();
            model.ToString().ShouldEqual(model.Id);
        }
Ejemplo n.º 2
0
        public void GeoNames_TimeZone_ShouldOverrideToString()
        {
            var model = new TimeZoneExtended
            {
                Id = "id",
            };

            model.ShouldNotBeNull();
            model.ToString().ShouldEqual(model.Id);
        }