public void FirstName_returns_a_first_name() { A.CallTo(() => _fakerContainer.Random.Element(NameData.FirstNames)) .Returns("Kaci"); Assert.AreEqual("Kaci", _nameFaker.FirstName()); }
public void FirstName_returns_a_first_name() { A.CallTo(() => _fakerContainer.Random.Element( A <IEnumerable <string> > .That.IsSameSequenceAs(Data.FirstNames))) .Returns("Kaci"); Assert.AreEqual("Kaci", _nameFaker.FirstName()); }