示例#1
0
        public void EqualsReturnsCorrectResult(
            bool expected,
            string sutRel,
            string otherRel,
            string sutHref,
            string otherHref)
        {
            var sut = new AtomLink(sutRel, new Uri(sutHref, UriKind.Relative));
            var other = new AtomLink(otherRel, new Uri(otherHref, UriKind.Relative));

            var actual = sut.Equals(other);

            Assert.Equal(expected, actual);
        }
示例#2
0
 public void SutDoesNotEqualAnonymousOther(
     AtomLink sut,
     object anonymous)
 {
     var actual = sut.Equals(anonymous);
     Assert.False(actual);
 }