Example #1
0
        public void Name_returns_a_name()
        {
            A.CallTo(() => _fakerContainer.Random.Element(NameData.FirstNames))
            .Returns("Tyshawn");
            A.CallTo(() => _fakerContainer.Random.Element(NameData.LastNames))
            .Returns("Johns Sr.");

            Assert.AreEqual("Tyshawn Johns Sr.", _nameFaker.Name());
        }
Example #2
0
        public void Name_returns_a_name()
        {
            A.CallTo(() => _fakerContainer.Random.Element(
                         A <IEnumerable <string> > .That.IsSameSequenceAs(Data.FirstNames)))
            .Returns("Tyshawn");
            A.CallTo(() => _fakerContainer.Random.Element(
                         A <IEnumerable <string> > .That.IsSameSequenceAs(Data.LastNames)))
            .Returns("Johns Sr.");

            Assert.AreEqual("Tyshawn Johns Sr.", _nameFaker.Name());
        }