示例#1
0
        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);
        }
示例#2
0
        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);
        }