示例#1
0
        public void ShouldReturnMrName()
        {
            // given
            string randomName     = new RealNames(NameStyle.LastName).GetValue();
            string inputName      = randomName;
            string expectedMrName = $"Mr. {randomName}";
            var    nameService    = new NameService();

            // when
            string actualMrName = nameService.GetMrName(inputName);

            // then
            Assert.Equal(expectedMrName, actualMrName);
        }