Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created July 21, 2012 13:01
Show Gist options
  • Save hhariri/3155771 to your computer and use it in GitHub Desktop.
Save hhariri/3155771 to your computer and use it in GitHub Desktop.
public class When_baseuri_is_null_and_query_is_null
{
Establish context = () =>
{
uriComposer = new UriComposer();
query = null;
baseUri = null;
};
Because of = () => url = uriComposer.Compose(baseUri, query, uri);
It should_return_the_uri = () => url.ShouldEqual("uri");
static UriComposer uriComposer;
static string url;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment