コード例 #1
0
        public void IsPreviousFeedLinkReturnsFalsForLinkWithIncorrectRel(
            UuidIri id)
        {
            var link   = AtomEventStream.CreateSelfLinkFrom(id);
            var actual = AtomEventStream.IsPreviousFeedLink(link);

            Assert.False(actual);
        }
コード例 #2
0
        public void CreateSelfLinkFromReturnsCorrectResult(
            UuidIri id)
        {
            AtomLink actual = AtomEventStream.CreateSelfLinkFrom(id);

            var expected = AtomLink.CreateSelfLink(
                new Uri(
                    ((Guid)id).ToString(),
                    UriKind.Relative));

            Assert.Equal(expected, actual);
        }