Exemple #1
0
        public void Suffix_returns_a_suffix()
        {
            A.CallTo(() => _fakerContainer.Random.Element(NameData.Suffixes))
            .Returns("IV");

            Assert.AreEqual("IV", _nameFaker.Suffix());
        }
Exemple #2
0
        public void Suffix_returns_a_suffix()
        {
            A.CallTo(() => _fakerContainer.Random.Element(
                         A <IEnumerable <string> > .That.IsSameSequenceAs(Data.Suffixes)))
            .Returns("IV");

            Assert.AreEqual("IV", _nameFaker.Suffix());
        }