public void Title_returns_a_title() { A.CallTo(() => _fakerContainer.Random.Element(NameData.TitleDescriptors)) .Returns("Legacy"); A.CallTo(() => _fakerContainer.Random.Element(NameData.TitleLevels)) .Returns("Creative"); A.CallTo(() => _fakerContainer.Random.Element(NameData.TitleJobs)) .Returns("Director"); Assert.AreEqual("Legacy Creative Director", _nameFaker.Title()); }
public void Title_returns_a_title() { A.CallTo(() => _fakerContainer.Random.Element( A <IEnumerable <string> > .That.IsSameSequenceAs(Data.TitleDescriptors))) .Returns("Legacy"); A.CallTo(() => _fakerContainer.Random.Element( A <IEnumerable <string> > .That.IsSameSequenceAs(Data.TitleLevels))) .Returns("Creative"); A.CallTo(() => _fakerContainer.Random.Element( A <IEnumerable <string> > .That.IsSameSequenceAs(Data.TitleJobs))) .Returns("Director"); Assert.AreEqual("Legacy Creative Director", _nameFaker.Title()); }