public void WithHrefReturnsCorrectResult( AtomLink sut, Uri newHref) { AtomLink actual = sut.WithHref(newHref); var expected = sut.AsSource().OfLikeness <AtomLink>() .With(x => x.Href).EqualsWhen( (s, d) => object.Equals(newHref, d.Href)); expected.ShouldEqual(actual); }
public void WithRelReturnsCorrectResult( AtomLink sut, string newRel) { AtomLink actual = sut.WithRel(newRel); var expected = sut.AsSource().OfLikeness <AtomLink>() .With(x => x.Rel).EqualsWhen( (s, d) => object.Equals(newRel, d.Rel)); expected.ShouldEqual(actual); }