public void GivenAValueHasBeenSetAgainstAProperty_WhenRetrievingTheValueForThatProperty_ThenTheSetValueIsReturned() { _b.Set(x => x.FirstName, SetValue); var retrieved = _b.Get(x => x.FirstName); retrieved.ShouldBe(SetValue); }
public void GivenAValueHasBeenSetAgainstAProperty_WhenRetrievingTheValueForThatProperty_ThenTheSetValueIsReturned() { _b.Set(x => x.FirstName, SetValue); var retrieved = _b.GetOrDefault(x => x.FirstName); Assert.That(retrieved, Is.EqualTo(SetValue)); }