public void Distinguishes_linked_resources() { // Arrange var convention = new DefaultPropertyScanningConvention(); var titlePi = typeof(Post).GetProperty("Title"); var authorPi = typeof(Post).GetProperty("Author"); var repliesPi = typeof(Post).GetProperty("Replies"); // Act var titleIsLinkedResource = convention.IsLinkedResource(titlePi); var authorIsLinkedResource = convention.IsLinkedResource(authorPi); var repliesIsLinkedResource = convention.IsLinkedResource(repliesPi); // Assert titleIsLinkedResource.ShouldBeFalse(); authorIsLinkedResource.ShouldBeTrue(); repliesIsLinkedResource.ShouldBeTrue(); }