public void RelativeUriWithResource(string current, string srcPath, string targetUri) { if (current.StartsWith("C:/") && Environment.OSVersion.Platform == PlatformID.Unix) { return; } var uri = new Uri(current); var resource = new Resource(uri, Array.Empty <byte>()); rs.PushResource(resource); var relativeUri = rs.RelativeUri(srcPath); rs.PopResource(); Assert.Equal(targetUri, relativeUri.ToString()); }