GetRelativeResource() public method

Gets a resource relative to this one based on the path
public GetRelativeResource ( string relativePath ) : Resource
relativePath string The relative path.
return Resource
 public void Test_Throws_Exception_If_Relative_Path_Points_Above_Root()
 {
     var from = new Resource(@"\spec\concordion\breadcrumbs\Breadcrumbs.html");
     Assert.Throws<Exception>(delegate { from.GetRelativeResource(@"\image\cocordion-logo.png");  });
 }
        private static string GetNameOfFixtureToRun(Resource resource, string href)
        {
            Resource hrefResource = resource.GetRelativeResource(href);
            var fixturePath = hrefResource.Path;
            var fixtureFullyQualifiedPath = fixturePath.Replace("\\", ".");
            var fixtureName = fixtureFullyQualifiedPath.Replace(".html", "");

            if (fixtureName.StartsWith("."))
            {
                fixtureName = fixtureName.Remove(0, 1);
            }
            return fixtureName;
        }