Skip to content

Instantly share code, notes, and snippets.

@dragan
Created May 20, 2012 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragan/2757624 to your computer and use it in GitHub Desktop.
Save dragan/2757624 to your computer and use it in GitHub Desktop.
NancyException
using System;
using Nancy;
using Nancy.Testing;
using Xunit;
using NancySandbox;
namespace NancySandbox.Tests.Modules
{
public class RootModuleTests
{
public class when_requesting_root
{
[Fact]
public void should_return_status_ok()
{
var bootstrapper = new Bootstrapper();
var browser = new Browser(bootstrapper);
var response = browser.Get("/", with => {
with.HttpRequest();
});
Assert.Equal(response.StatusCode, HttpStatusCode.OK);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment