public void ShouldReturnAFullNameWithTwoWords(int iterations) { while (iterations-- > 0) { var name = _randomNameGenerator.GetFullName(50); Assert.Equal(2, name.Split(' ').Length); } }
public void ShouldReturnAFullNameWithTwoLastNames(int iterations) { while (iterations-- > 0) { var name = _randomNameGenerator.GetFullName(50); // At least 3, max 4 words (one first name which might be two words, and two last names) Assert.InRange(name.Split(' ').Length, 3, 4); } }