-
-
Save ToJans/881753 to your computer and use it in GitHub Desktop.
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
public class BrowserFixture | |
{ | |
private readonly Browser browser; | |
public BrowserFixture() | |
{ | |
var bootstrapper = | |
new FakeDefaultNancyBootstrapper(); | |
this.browser = new Browser(bootstrapper); | |
} | |
[Fact] | |
public void Should_just_work_got_damit() | |
{ | |
// Arrange | |
var request = Request.Get("/"); | |
request.Header("Content-Length", "0"); | |
request.Header("Accepted-Type", "text/plain"); | |
// Act | |
var response = browser.Process(request); | |
// Assert | |
response.StatusCode.ShouldEqual(HttpStatusCode.OK); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment