public void WithLinksReturnsCorrectResult( AtomEntry sut, IEnumerable <AtomLink> newLinks) { AtomEntry actual = sut.WithLinks(newLinks); var expected = sut.AsSource().OfLikeness <AtomEntry>() .With(x => x.Links).EqualsWhen( (s, d) => newLinks.SequenceEqual(d.Links)); expected.ShouldEqual(actual); }
public void WithLinksReturnsCorrectResult( AtomEntry sut, IEnumerable<AtomLink> newLinks) { AtomEntry actual = sut.WithLinks(newLinks); var expected = sut.AsSource().OfLikeness<AtomEntry>() .With(x => x.Links).EqualsWhen( (s, d) => newLinks.SequenceEqual(d.Links)); expected.ShouldEqual(actual); }