public void ResourcePathShouldBeSlash() { var request = new FluentHttpRequest("https://graph.facebook.com").ResourcePath("/"); var resourcePath = request.GetResourcePath(); Assert.Equal("/", resourcePath); }
public void ItShouldStartWithSlash(string originalResourcePath) { var request = new FluentHttpRequest("https://www.facebook.com") .ResourcePath(originalResourcePath); var resourcePath = request.GetResourcePath(); Assert.True(resourcePath.StartsWith("/")); }
public void ItResourcePathShouldBeEmptyString() { var request = new FluentHttpRequest("https://graph.facebook.com").ResourcePath("/me"); request.ResourcePath(null); var result = request.GetResourcePath(); Assert.Equal(string.Empty, result); }
public void ItShouldStartWithSlashFollowedByTheOriginalResourcePath(string originalResourcePath) { var expcetedResourcePath = string.Concat("/", originalResourcePath); var request = new FluentHttpRequest("https://www.facebook.com") .ResourcePath(originalResourcePath); var resourcePath = request.GetResourcePath(); Assert.Equal(expcetedResourcePath, resourcePath); }