예제 #1
0
        public void RandomNameIsReturned()
        {
            var sut   = new StreetName(City.Dresden);
            var value = sut.GetValue();

            Assert.IsFalse(string.IsNullOrEmpty(value));


            sut   = new StreetName(City.NewYork);
            value = sut.GetValue();
            Assert.IsFalse(string.IsNullOrEmpty(value));

            sut   = new StreetName(City.London);
            value = sut.GetValue();
            Assert.IsFalse(string.IsNullOrEmpty(value));

            sut   = new StreetName(City.Moscow);
            value = sut.GetValue();
            Assert.IsFalse(string.IsNullOrEmpty(value));

            sut   = new StreetName(City.Paris);
            value = sut.GetValue();
            Assert.IsFalse(string.IsNullOrEmpty(value));

            sut   = new StreetName(City.Tokyo);
            value = sut.GetValue();
            Assert.IsFalse(string.IsNullOrEmpty(value));
        }
        public void RandomNameIsReturned()
        {
            var sut = new StreetName(City.Dresden);
            var value = sut.GetValue();
            Assert.False(string.IsNullOrEmpty(value));


            sut = new StreetName(City.NewYork);
            value = sut.GetValue();
            Assert.False(string.IsNullOrEmpty(value));

            sut = new StreetName(City.London);
            value = sut.GetValue();
            Assert.False(string.IsNullOrEmpty(value));

            sut = new StreetName(City.Moscow);
            value = sut.GetValue();
            Assert.False(string.IsNullOrEmpty(value));

            sut = new StreetName(City.Paris);
            value = sut.GetValue();
            Assert.False(string.IsNullOrEmpty(value));

            sut = new StreetName(City.Tokyo);
            value = sut.GetValue();
            Assert.False(string.IsNullOrEmpty(value));
        }