示例#1
0
        public void CreateLastLinkReturnsCorrectResult(
            AtomLink link)
        {
            AtomLink actual = AtomLink.CreateLastLink(link.Href);

            var expected = link.WithRel("last");

            Assert.Equal(expected, actual);
        }
示例#2
0
        public void IsLastLinkReturnsTrueForLastLink(Uri href)
        {
            bool actual = AtomLink.CreateLastLink(href).IsLastLink;

            Assert.True(actual, "Should be last link.");
        }