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

            Assert.AreEqual("IV", _nameFaker.Suffix());
        }
예제 #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());
        }