Created
May 20, 2012 10:44
-
-
Save dragan/2757624 to your computer and use it in GitHub Desktop.
NancyException
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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