Пример #1
0
        public void Prefix_returns_a_prefix()
        {
            A.CallTo(() => _fakerContainer.Random.Element(NameData.Prefixes))
            .Returns("Mr.");

            Assert.AreEqual("Mr.", _nameFaker.Prefix());
        }
Пример #2
0
        public void Prefix_returns_a_prefix()
        {
            A.CallTo(() => _fakerContainer.Random.Element(
                         A <IEnumerable <string> > .That.IsSameSequenceAs(Data.Prefixes)))
            .Returns("Mr.");

            Assert.AreEqual("Mr.", _nameFaker.Prefix());
        }