Exemple #1
0
        public void FirstName_returns_a_first_name()
        {
            A.CallTo(() => _fakerContainer.Random.Element(NameData.FirstNames))
            .Returns("Kaci");

            Assert.AreEqual("Kaci", _nameFaker.FirstName());
        }
Exemple #2
0
        public void FirstName_returns_a_first_name()
        {
            A.CallTo(() => _fakerContainer.Random.Element(
                         A <IEnumerable <string> > .That.IsSameSequenceAs(Data.FirstNames)))
            .Returns("Kaci");

            Assert.AreEqual("Kaci", _nameFaker.FirstName());
        }