public void Relation_should_be_equal_to_itself() { // Given var rel = new HttpLinkRelation("alternate"); // When, Then rel.ShouldEqual(rel); }
public void Iana_relations_with_different_casing_and_prefix_should_all_be_equal() { // Given var first = new HttpLinkRelation("AlterNate"); var second = new HttpLinkRelation("ALTERNATE"); var third = new HttpLinkRelation("alternate"); var fourth = new HttpLinkRelation(HttpLinkRelation.IanaLinkRelationPrefix + "alternate"); // When, Then first.ShouldEqual(second); second.ShouldEqual(third); third.ShouldEqual(fourth); }