Ejemplo n.º 1
0
        public void Address_ShouldHaveThreeSections_AndStreetIsShort()
        {
            // Arrange

            // Act
            var result = _sut.Address();

            // Assert
            Assert.IsNotNullOrEmpty(result);
            var sections = result.Split(' ');

            Assert.AreEqual(3, sections.Count());
            Assert.LessOrEqual(sections[2].Length, 4);
        }