public void LastName_returns_a_last_name() { A.CallTo(() => _fakerContainer.Random.Element(NameData.LastNames)) .Returns("Ernser"); Assert.AreEqual("Ernser", _nameFaker.LastName()); }
public void LastName_returns_a_last_name() { A.CallTo(() => _fakerContainer.Random.Element( A <IEnumerable <string> > .That.IsSameSequenceAs(Data.LastNames))) .Returns("Ernser"); Assert.AreEqual("Ernser", _nameFaker.LastName()); }