Ejemplo n.º 1
0
        public void TestResourceTypeGetLinkInfo(string name, bool linkExists, IResourceType resourceType, string rel, ILinkInfo expected)
        {
            this.Output.WriteLine("Test Name: {0}", name);
            this.Output.WriteLine(String.Empty);

            // Arrange

            // Act
            if (!linkExists)
            {
                Assert.Throws <ServiceModelException>(() => resourceType.GetLinkInfo(rel));
                return;
            }
            var actual = resourceType.GetLinkInfo(rel);

            // Assert
            LinkInfoAssert.Equal(expected, actual);
        }