public void TestResourceTypeTryGetLinkInfo(string name, bool attributeExists, IResourceType resourceType, string clrPropertyName, ILinkInfo expected) { this.Output.WriteLine("Test Name: {0}", name); this.Output.WriteLine(String.Empty); // Arrange // Act ILinkInfo actual; var actualExists = resourceType.TryGetLinkInfo(clrPropertyName, out actual); // Assert if (!attributeExists) { Assert.False(actualExists); Assert.Null(actual); return; } Assert.True(actualExists); Assert.NotNull(actual); LinkInfoAssert.Equal(expected, actual); }