Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }