public void Prefix_returns_a_prefix() { A.CallTo(() => _fakerContainer.Random.Element(NameData.Prefixes)) .Returns("Mr."); Assert.AreEqual("Mr.", _nameFaker.Prefix()); }
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()); }