示例#1
0
        public void LastName_returns_a_last_name()
        {
            A.CallTo(() => _fakerContainer.Random.Element(NameData.LastNames))
            .Returns("Ernser");

            Assert.AreEqual("Ernser", _nameFaker.LastName());
        }
示例#2
0
        public void LastName_returns_a_last_name()
        {
            A.CallTo(() => _fakerContainer.Random.Element(
                         A <IEnumerable <string> > .That.IsSameSequenceAs(Data.LastNames)))
            .Returns("Ernser");

            Assert.AreEqual("Ernser", _nameFaker.LastName());
        }