Skip to content

Commit

Permalink
Added Given/When/Then and moved using statements
Browse files Browse the repository at this point in the history
  • Loading branch information
hlesesne committed Mar 24, 2015
1 parent 907556c commit 50e3610
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/Nancy.Tests.Functional/Tests/RouteConstraintTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nancy.Tests.Functional.Tests
namespace Nancy.Tests.Functional.Tests
{
using System;

using Nancy.Bootstrapper;
using Nancy.Routing.Constraints;
using Nancy.Testing;
Expand Down Expand Up @@ -37,13 +34,18 @@ public RouteConstraintTests()
[Fact]
public void multiple_parameters_per_segment_should_support_constraints()
{
var response = browser.Get(
@"/4.3...5.3",
// Given
const string url = @"/4.3...5.3";

// When
var response = this.browser.Get(
url,
with =>
{
with.HttpRequest();
});

// Then
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
Assert.True(Invoked);
}
Expand Down

0 comments on commit 50e3610

Please sign in to comment.